Beispiel #1
0
CUnitTests* BenchSuite_tests()
{
    CUnitTests *tests = CUnitTests_New(100);
    
    // method tests
    CUnitTests_addTest(tests, CUNIT_NEW(BenchSuite, calibrate));
    CUnitTests_addTest(tests, CUNIT_NEW(BenchSuite, distance));
    
    return tests;
}
Beispiel #2
0
CUnitTests* SQLFuzzSuite_tests()
{
    CUnitTests *tests = CUnitTests_New(100);
    
    // method tests
    CUnitTests_addTest(tests, CUNIT_NEW(SQLFuzzSuite, FirstToken));
    CUnitTests_addTest(tests, CUNIT_NEW(SQLFuzzSuite, SELECT));
    CUnitTests_addTest(tests, CUNIT_NEW(SQLFuzzSuite, INSERT));
    CUnitTests_addTest(tests, CUNIT_NEW(SQLFuzzSuite, CREATE_TABLE));
    
    return tests;
}
Beispiel #3
0
CUnitTests* DBSuite2_tests()
{
    CUnitTests *tests = CUnitTests_New(100);

    // method tests
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbInstance_executeParser));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlBinaryExpression_GetLeftOperation));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlBinaryExpression_GetRightOperation));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlExpression_CompilePlanIntoBuffer_Value_));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlValueType_toString));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbTuple_set));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlValue_castable));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlValue_getVarchar));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlValue_getFloat_2));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlValue_getFloat_1));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlValue_getInteger));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlCastExpression_Delete));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlCastExpression_DeleteRecursive));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlExpression_CompilePlanIntoBuffer_Cast_));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlExpression_CompilePlanIntoBuffer_Unary_));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlUnaryExpression_GetOperation));
//    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbTuple_setFloat));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlExpression_CompilePlanIntoBuffer_Binary_));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlValue_toString_3));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlBinaryExpression_GetPageOperation));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlFunctionExpression_DeleteRecursive));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlFunctionExpression_Delete));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlExpression_CompilePlanIntoBuffer_Function_));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlValue_toString_2));
//    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, _string_literal));
//    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, _CREATE));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbParser_IsNonreservedKeyword));
//    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, _comment_single));
//    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, _comment_multi));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbInformationSchema_Delete));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbInformationSchema_tables));
//    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, _BadEntityName));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbParser_IsReservedKeyword));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbParser_Delete));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbParser_lastError));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlUnaryExpression_DeleteRecursive));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlUnaryExpression_Delete));
    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, EagleDbSqlExpression_CompilePlanIntoBuffer_2));
    CUnitTests_addTest(tests, CUNIT_NEW(MainSuite, EagleDbSqlSelect_toString));
//    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, _INSERT_BadValue2));
//    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, _INSERT_BadValue1));
//    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, _INSERT_BadColumn2));
//    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, _INSERT_BadColumn1));
//    CUnitTests_addTest(tests, CUNIT_NEW(DBSuite, _INSERT_BadMatch));

    return tests;
}
Beispiel #4
0
CUnitTests* MemorySuite2_tests()
{
    CUnitTests *tests = CUnitTests_New(100);
    
    // method tests
    CUnitTests_addTest(tests, CUNIT_NEW(MemorySuite, EaglePlan_New_2));
    CUnitTests_addTest(tests, CUNIT_NEW(MemorySuite, EaglePlan_New_3));
    CUnitTests_addTest(tests, CUNIT_NEW(MemorySuite, EaglePlanBufferProvider_NewWithValue));
    CUnitTests_addTest(tests, CUNIT_NEW(MemorySuite, EagleDbSqlCastExpression_toString));
    CUnitTests_addTest(tests, CUNIT_NEW(MemorySuite, EagleDbSqlCastExpression_New));
    CUnitTests_addTest(tests, CUNIT_NEW(MemorySuite, EagleDbSqlFunctionExpression_New));
    CUnitTests_addTest(tests, CUNIT_NEW(MemorySuite, EagleDbSqlFunctionExpression_toString));
    CUnitTests_addTest(tests, CUNIT_NEW(MemorySuite, EagleData_Float));
    CUnitTests_addTest(tests, CUNIT_NEW(MemorySuite, EagleDbSqlValue_NewWithFloat));
    CUnitTests_addTest(tests, CUNIT_NEW(MemorySuite, EaglePageProviderSingle_NewFloat));
    CUnitTests_addTest(tests, CUNIT_NEW(MemorySuite, EaglePageProviderSingle_nextPage_3));
    CUnitTests_addTest(tests, CUNIT_NEW(MemorySuite, EaglePage_AllocFloat));
    CUnitTests_addTest(tests, CUNIT_NEW(MemorySuite, EaglePage_CopyFloat_));
    
    return tests;
}