SquirrelJME/SquirrelJME

View on GitHub
nanocoat/tests/testClassParseConstantPoolClassInfo.c

Summary

Maintainability
Test Coverage
/* -*- Mode: C; indent-tabs-mode: t; tab-width: 4 -*-
// ---------------------------------------------------------------------------
// SquirrelJME
//     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
// ---------------------------------------------------------------------------
// SquirrelJME is under the Mozilla Public License Version 2.0.
// See license.mkd for licensing and copyright information.
// -------------------------------------------------------------------------*/

#include <string.h>

#include "mock.h"
#include "proto.h"
#include "test.h"
#include "unit.h"

/**
 * Tests parsing of class info in the constant pool.
 *  
 * @since 2024/01/01 
 */
SJME_TEST_DECLARE(testClassParseConstantPoolClassInfo)
{
    sjme_classBuilder builder;

    memset(&builder, 0, sizeof(builder));
    if (sjme_error_is(sjme_classBuilder_build(test->pool,
        &builder, SJME_JNI_FALSE, test)))
        return sjme_unit_fail(test, "Failed to initialize class builder.");

    sjme_todo("Implement %s", __func__);
    return SJME_TEST_RESULT_FAIL;
}