当前位置: 首页>>代码示例>>C++>>正文


C++ EMB_UNIT_TESTCALLER函数代码示例

本文整理汇总了C++中EMB_UNIT_TESTCALLER函数的典型用法代码示例。如果您正苦于以下问题:C++ EMB_UNIT_TESTCALLER函数的具体用法?C++ EMB_UNIT_TESTCALLER怎么用?C++ EMB_UNIT_TESTCALLER使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了EMB_UNIT_TESTCALLER函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: EMB_UNIT_TESTFIXTURES

Test *tests_fmt_tests(void)
{
    EMB_UNIT_TESTFIXTURES(fixtures) {
        new_TestFixture(test_fmt_byte_hex),
        new_TestFixture(test_fmt_bytes_hex_reverse),
        new_TestFixture(test_fmt_u32_hex),
        new_TestFixture(test_fmt_u64_hex),
        new_TestFixture(test_fmt_u32_dec),
        new_TestFixture(test_fmt_u64_dec_a),
        new_TestFixture(test_fmt_u64_dec_b),
        new_TestFixture(test_fmt_u64_dec_c),
        new_TestFixture(test_fmt_u16_dec),
        new_TestFixture(test_fmt_s32_dec),
        new_TestFixture(test_fmt_s16_dec),
        new_TestFixture(test_fmt_s16_dfp),
        new_TestFixture(test_fmt_s32_dfp),
        new_TestFixture(test_fmt_strlen),
        new_TestFixture(test_fmt_str),
        new_TestFixture(test_scn_u32_dec),
        new_TestFixture(test_fmt_lpad),
    };

    EMB_UNIT_TESTCALLER(fmt_tests, NULL, NULL, fixtures);

    return (Test *)&fmt_tests;
}
开发者ID:kamejoko80,项目名称:RIOT,代码行数:26,代码来源:tests-fmt.c

示例2: EMB_UNIT_TESTFIXTURES

Test *tests_netif_tests(void)
{
    EMB_UNIT_TESTFIXTURES(fixtures) {
        new_TestFixture(test_ng_netif_add__KERNEL_PID_UNDEF),
        new_TestFixture(test_ng_netif_add__memfull),
        new_TestFixture(test_ng_netif_add__success),
        new_TestFixture(test_ng_netif_add__duplicate_entry),
        new_TestFixture(test_ng_netif_remove__KERNEL_PID_UNDEF),
        new_TestFixture(test_ng_netif_remove__not_an_if),
        new_TestFixture(test_ng_netif_remove__success),
        new_TestFixture(test_ng_netif_get__empty),
        new_TestFixture(test_ng_netif_get__success_3_minus_one),
        new_TestFixture(test_ng_netif_get__full),
        new_TestFixture(test_ng_netif_addr_to_str__out_too_short),
        new_TestFixture(test_ng_netif_addr_to_str__success),
        new_TestFixture(test_ng_netif_addr_from_str__out_too_short),
        new_TestFixture(test_ng_netif_addr_from_str__omitted_delimitter),
        new_TestFixture(test_ng_netif_addr_from_str__ill_formated2),
        new_TestFixture(test_ng_netif_addr_from_str__dash_delimitter),
        new_TestFixture(test_ng_netif_addr_from_str__zero_omitted_back),
        new_TestFixture(test_ng_netif_addr_from_str__zero_omitted_front),
        new_TestFixture(test_ng_netif_addr_from_str__ill_trailing_delimitter),
        new_TestFixture(test_ng_netif_addr_from_str__ill_leading_delimitter),
        new_TestFixture(test_ng_netif_addr_from_str__ill_extra_delimitter),
        new_TestFixture(test_ng_netif_addr_from_str__success),
    };

    EMB_UNIT_TESTCALLER(netif_tests, set_up, NULL, fixtures);

    return (Test *)&netif_tests;
}
开发者ID:daniel-k,项目名称:RIOT,代码行数:31,代码来源:tests-netif.c

示例3: EMB_UNIT_TESTFIXTURES

Test *tests_nanocoap_tests(void)
{
    EMB_UNIT_TESTFIXTURES(fixtures) {
        new_TestFixture(test_nanocoap__hdr),
        new_TestFixture(test_nanocoap__get_req),
        new_TestFixture(test_nanocoap__put_req),
        new_TestFixture(test_nanocoap__get_multi_path),
        new_TestFixture(test_nanocoap__get_path_trailing_slash),
        new_TestFixture(test_nanocoap__get_root_path),
        new_TestFixture(test_nanocoap__get_max_path),
        new_TestFixture(test_nanocoap__get_path_too_long),
        new_TestFixture(test_nanocoap__get_query),
        new_TestFixture(test_nanocoap__get_multi_query),
        new_TestFixture(test_nanocoap__option_add_buffer_max),
        new_TestFixture(test_nanocoap__server_get_req),
        new_TestFixture(test_nanocoap__server_reply_simple),
        new_TestFixture(test_nanocoap__server_get_req_con),
        new_TestFixture(test_nanocoap__server_reply_simple_con),
        new_TestFixture(test_nanocoap__server_option_count_overflow_check),
        new_TestFixture(test_nanocoap__server_option_count_overflow),
    };

    EMB_UNIT_TESTCALLER(nanocoap_tests, NULL, NULL, fixtures);

    return (Test *)&nanocoap_tests;
}
开发者ID:OTAkeys,项目名称:RIOT,代码行数:26,代码来源:tests-nanocoap.c

示例4: TwoWirePlus_BaseTest_RunTests

TestRef TwoWirePlus_BaseTest_RunTests(void)
{
   EMB_UNIT_TESTFIXTURES(fixtures) {
	new_TestFixture("Parameter: Check TWOWIREPLUS_RINGBUFFER_SIZE", TwoWirePlus_BaseTest_Parameter_TC1),
	new_TestFixture("Constructor: Register initialization", TwoWirePlus_BaseTest_Constructor_TC1),
	new_TestFixture("Constructor: Ring buffer initialization", TwoWirePlus_BaseTest_Constructor_TC2),
	new_TestFixture("beginTransmission: Check correct address is sent", TwoWirePlus_BaseTest_beginTransmission_TC1),
	new_TestFixture("beginTransmission: No changes to TWDR", TwoWirePlus_BaseTest_beginTransmission_TC2),
	new_TestFixture("write: Check data is written to TWDR", TwoWirePlus_BaseTest_write_TC1),
	new_TestFixture("write: Check data is written to ring-buffer", TwoWirePlus_BaseTest_write_TC2),
	new_TestFixture("beginReception: Check correct address is sent", TwoWirePlus_BaseTest_beginReception_TC1),
	new_TestFixture("beginReception: No changes to TWDR", TwoWirePlus_BaseTest_beginReception_TC2),
	new_TestFixture("requestBytes: Check TwoWirePlus_bytesToReceive", TwoWirePlus_BaseTest_requestBytes_TC1),
	new_TestFixture("available: Check if available bytes are correct", TwoWirePlus_BaseTest_available_TC1),
	new_TestFixture("read: Check normal buffer read", TwoWirePlus_BaseTest_read_TC1),
	new_TestFixture("read: Check buffer read when buffer was used", TwoWirePlus_BaseTest_read_TC2),
	new_TestFixture("read: Check return value if more bytes read than available in buffer", TwoWirePlus_BaseTest_read_TC3),
	new_TestFixture("getBytesToBeReceived: Check return value",TwoWirePlus_BaseTest_getBytesToBeReceived_TC1),
	new_TestFixture("getStatus: Check return value", TwoWirePlus_BaseTest_getStatus_TC1),
	new_TestFixture("ISR: Check if status is reported", TwoWirePlus_BaseTest_ISR_TC1),
	new_TestFixture("ISR: Check TW_MR_SLA_NACK", TwoWirePlus_BaseTest_ISR_TC2),
	new_TestFixture("ISR: Check TW_MR_SLA_NACK, TW_MT_SLA_ACK, TW_MR_SLA_ACK, TW_MT_SLA_NACK, TW_MT_DATA_NACK, TW_MT_DATA_ACK", TwoWirePlus_BaseTest_ISR_TC3),
	new_TestFixture("ISR: Check data bytes are sent", TwoWirePlus_BaseTest_ISR_TC4),
	new_TestFixture("ISR: Check TW_INT is cleared", TwoWirePlus_BaseTest_ISR_TC5),
	new_TestFixture("ISR: Check master receiver NACK for last byte", TwoWirePlus_BaseTest_ISR_TC6),
	new_TestFixture("begin: Check if begin does nothing", TwoWirePlus_BaseTest_begin_TC1),
	new_TestFixture("RingBuffer: Increment index test", TwoWirePlus_BaseTest_RingBuffer_TC1),
	new_TestFixture("RingBuffer: Full/Empty test", TwoWirePlus_BaseTest_RingBuffer_TC2),
	new_TestFixture("Master Receiver: ",TwoWirePlus_BaseTest_MasterReceiver_TC1),
	new_TestFixture("Master Receiver: ",TwoWirePlus_BaseTest_MasterReceiver_TC2),
  };
   EMB_UNIT_TESTCALLER(TwoWirePlus_BaseTest,"TwoWirePlus_BaseTest",setUp,tearDown, fixtures);
   return (TestRef)&TwoWirePlus_BaseTest;
}
开发者ID:kein0r,项目名称:WirePlus,代码行数:34,代码来源:TwoWirePlus_BaseTest_drv.c

示例5: EMB_UNIT_TESTFIXTURES

Test *tests_core_atomic_tests(void)
{
    EMB_UNIT_TESTFIXTURES(fixtures) {
        new_TestFixture(test_atomic_set_to_one_one),
        new_TestFixture(test_atomic_set_to_one_zero),
        new_TestFixture(test_atomic_set_to_one_twice),
        new_TestFixture(test_atomic_set_to_zero_one),
        new_TestFixture(test_atomic_set_to_zero_zero),
        new_TestFixture(test_atomic_set_to_zero_twice),
        new_TestFixture(test_atomic_inc_positive),
        new_TestFixture(test_atomic_inc_negative),
        new_TestFixture(test_atomic_inc_rollover),
        new_TestFixture(test_atomic_dec_positive),
        new_TestFixture(test_atomic_dec_negative),
        new_TestFixture(test_atomic_dec_rollover),
        new_TestFixture(test_atomic_cas_same),
        new_TestFixture(test_atomic_cas_diff),
        new_TestFixture(test_atomic_value),
    };

    EMB_UNIT_TESTCALLER(core_atomic_tests, NULL, NULL,
                        fixtures);

    return (Test *)&core_atomic_tests;
}
开发者ID:AdamRLukaitis,项目名称:RIOT,代码行数:25,代码来源:tests-core-atomic.c

示例6: EMB_UNIT_TESTFIXTURES

Test *tests_core_bitarithm_tests(void)
{
    EMB_UNIT_TESTFIXTURES(fixtures) {
        new_TestFixture(test_SETBIT_null_null),
                        new_TestFixture(test_SETBIT_null_limit),
                        new_TestFixture(test_SETBIT_limit_null),
                        new_TestFixture(test_SETBIT_limit_limit),
                        new_TestFixture(test_SETBIT_null_one),
                        new_TestFixture(test_SETBIT_one_null),
                        new_TestFixture(test_SETBIT_one_random),
                        new_TestFixture(test_CLRBIT_null_null),
                        new_TestFixture(test_CLRBIT_null_limit),
                        new_TestFixture(test_CLRBIT_limit_null),
                        new_TestFixture(test_CLRBIT_limit_limit),
                        new_TestFixture(test_CLRBIT_null_one),
                        new_TestFixture(test_CLRBIT_one_null),
                        new_TestFixture(test_CLRBIT_one_random),
                        new_TestFixture(test_bitarithm_msb_one),
                        new_TestFixture(test_bitarithm_msb_limit),
                        new_TestFixture(test_bitarithm_msb_random),
                        new_TestFixture(test_bitarithm_lsb_one),
                        new_TestFixture(test_bitarithm_lsb_limit),
                        new_TestFixture(test_bitarithm_lsb_random),
                        new_TestFixture(test_bitarithm_bits_set_null),
                        new_TestFixture(test_bitarithm_bits_set_one),
                        new_TestFixture(test_bitarithm_bits_set_limit),
                        new_TestFixture(test_bitarithm_bits_set_random),
    };

    EMB_UNIT_TESTCALLER(core_bitarithm_tests, NULL, NULL, fixtures);

    return (Test *)&core_bitarithm_tests;
}
开发者ID:4120976,项目名称:RIOT,代码行数:33,代码来源:tests-core-bitarithm.c

示例7: fib_init

Test *tests_fib_tests(void)
{
    fib_init();
    EMB_UNIT_TESTFIXTURES(fixtures) {
        new_TestFixture(test_fib_01_fill_unique_entries),
                        new_TestFixture(test_fib_02_fill_multiple_entries),
                        new_TestFixture(test_fib_03_removing_all_entries),
                        new_TestFixture(test_fib_04_remove_lower_half),
                        new_TestFixture(test_fib_05_remove_upper_half),
                        new_TestFixture(test_fib_06_remove_one_entry),
                        new_TestFixture(test_fib_07_remove_one_entry_multiple_times),
                        new_TestFixture(test_fib_08_remove_unknown),
                        new_TestFixture(test_fib_09_update_entry),
                        new_TestFixture(test_fib_10_add_exceed),
                        new_TestFixture(test_fib_11_get_next_hop_success),
                        new_TestFixture(test_fib_12_get_next_hop_fail),
                        new_TestFixture(test_fib_13_get_next_hop_fail_on_buffer_size),
                        new_TestFixture(test_fib_14_exact_and_prefix_match),
                        new_TestFixture(test_fib_15_get_lifetime),
                        new_TestFixture(test_fib_16_prefix_match),
                        new_TestFixture(test_fib_17_get_entry_set),
    };

    EMB_UNIT_TESTCALLER(fib_tests, NULL, NULL, fixtures);

    return (Test *)&fib_tests;
}
开发者ID:4dahalibut,项目名称:RIOT,代码行数:27,代码来源:tests-fib.c

示例8: t2_instance

TestRef t2_instance(void)
{
  EMB_UNIT_TESTFIXTURES(fixtures) {
    new_TestFixture("test_t2_instance",test_t2_instance)
  };
  EMB_UNIT_TESTCALLER(testCall,"mc_taskTermination_s2",NULL,NULL,fixtures);
  return (TestRef)&testCall;
}
开发者ID:TrampolineRTOS,项目名称:trampoline,代码行数:8,代码来源:task2_instance.c

示例9: t1_instance

TestRef t1_instance(void)
{
  EMB_UNIT_TESTFIXTURES(fixtures) {
    new_TestFixture("test_t1_instance",test_t1_instance)
  };
  EMB_UNIT_TESTCALLER(caller,"mc_alarms_s1",NULL,NULL,fixtures);
  return (TestRef)&caller;
}
开发者ID:TrampolineRTOS,项目名称:trampoline,代码行数:8,代码来源:task1_instance.c

示例10: PriorityDonateChainTest

TestRef PriorityDonateChainTest()
{
  EMB_UNIT_TESTFIXTURES( fixture ) {
      new_TestFixture( "PriorityDonateChain", TestPriorityDonateChain )
  };
  EMB_UNIT_TESTCALLER( PriorityDonateChainCaller,"ThreadPriorityBasedTests", Setup, TearDown, fixture );
  return (TestRef)&PriorityDonateChainCaller;
}
开发者ID:KartikAiyer,项目名称:AbstractUtils,代码行数:8,代码来源:PriorityDonateChainTest.c

示例11: EMB_UNIT_TESTFIXTURES

Test *tests_pktbuf_tests(void)
{
    EMB_UNIT_TESTFIXTURES(fixtures) {
        new_TestFixture(test_pktbuf_init),
        new_TestFixture(test_pktbuf_add__pkt_NULL__data_NULL__size_0),
        new_TestFixture(test_pktbuf_add__pkt_NOT_NULL__data_NULL__size_0),
        new_TestFixture(test_pktbuf_add__pkt_NULL__data_NOT_NULL__size_0),
        new_TestFixture(test_pktbuf_add__pkt_NOT_NULL__data_NOT_NULL__size_0),
        new_TestFixture(test_pktbuf_add__pkt_NULL__data_NULL__size_not_0),
        new_TestFixture(test_pktbuf_add__pkt_NOT_NULL__data_NULL__size_not_0),
        new_TestFixture(test_pktbuf_add__pkt_NOT_NULL__data_NOT_NULL__size_not_0),
#ifndef MODULE_GNRC_PKTBUF_MALLOC
        new_TestFixture(test_pktbuf_add__memfull),
#endif
        new_TestFixture(test_pktbuf_add__success),
        new_TestFixture(test_pktbuf_add__packed_struct),
#ifndef MODULE_GNRC_PKTBUF_MALLOC
        new_TestFixture(test_pktbuf_add__unaligned_in_aligned_hole),
#endif
        new_TestFixture(test_pktbuf_add__0_sized_release),
        new_TestFixture(test_pktbuf_mark__pkt_NULL__size_0),
        new_TestFixture(test_pktbuf_mark__pkt_NULL__size_not_0),
        new_TestFixture(test_pktbuf_mark__pkt_NOT_NULL__size_0),
        new_TestFixture(test_pktbuf_mark__pkt_NOT_NULL__size_greater_than_pkt_size),
        new_TestFixture(test_pktbuf_mark__pkt_NOT_NULL__pkt_data_NULL),
        new_TestFixture(test_pktbuf_mark__success_large),
        new_TestFixture(test_pktbuf_mark__success_aligned),
        new_TestFixture(test_pktbuf_mark__success_small),
        new_TestFixture(test_pktbuf_mark__success_equally_sized),
        new_TestFixture(test_pktbuf_realloc_data__size_0),
#ifndef MODULE_GNRC_PKTBUF_MALLOC
        new_TestFixture(test_pktbuf_realloc_data__memfull),
#endif
        new_TestFixture(test_pktbuf_realloc_data__nomemenough),
        new_TestFixture(test_pktbuf_realloc_data__shrink),
        new_TestFixture(test_pktbuf_realloc_data__memenough),
        new_TestFixture(test_pktbuf_realloc_data__alignment),
        new_TestFixture(test_pktbuf_realloc_data__success),
        new_TestFixture(test_pktbuf_realloc_data__success2),
        new_TestFixture(test_pktbuf_realloc_data__success3),
        new_TestFixture(test_pktbuf_hold__pkt_null),
        new_TestFixture(test_pktbuf_hold__pkt_external),
        new_TestFixture(test_pktbuf_hold__success),
        new_TestFixture(test_pktbuf_hold__success2),
        new_TestFixture(test_pktbuf_release__short_pktsnips),
        new_TestFixture(test_pktbuf_release__success),
        new_TestFixture(test_pktbuf_start_write__NULL),
        new_TestFixture(test_pktbuf_start_write__pkt_users_1),
        new_TestFixture(test_pktbuf_start_write__pkt_users_2),
        new_TestFixture(test_pktbuf_get_iovec__1_elem),
        new_TestFixture(test_pktbuf_get_iovec__3_elem),
        new_TestFixture(test_pktbuf_get_iovec__null),
    };

    EMB_UNIT_TESTCALLER(gnrc_pktbuf_tests, set_up, NULL, fixtures);

    return (Test *)&gnrc_pktbuf_tests;
}
开发者ID:LudwigKnuepfer,项目名称:RIOT,代码行数:58,代码来源:tests-pktbuf.c

示例12: COMInternalTest_seq5_t6_instance2

/*create the test suite with all the test cases*/
TestRef COMInternalTest_seq5_t6_instance2(void)
{
	EMB_UNIT_TESTFIXTURES(fixtures) {
		new_TestFixture("test_t6_instance2",test_t6_instance2)
	};
	EMB_UNIT_TESTCALLER(COMInternalTest,"COMInternalTest_sequence5",NULL,NULL,fixtures);
	
	return (TestRef)&COMInternalTest;
}
开发者ID:1984c,项目名称:trampoline,代码行数:10,代码来源:task6_instance2.c

示例13: AlarmsTest_seq9_t2_instance

/*create the test suite with all the test cases*/
TestRef AlarmsTest_seq9_t2_instance(void)
{
	EMB_UNIT_TESTFIXTURES(fixtures) {
		new_TestFixture("test_t2_instance",test_t2_instance)
	};
	EMB_UNIT_TESTCALLER(AlarmsTest,"AlarmsTest_sequence9",NULL,NULL,fixtures);
	
	return (TestRef)&AlarmsTest;
}
开发者ID:1984c,项目名称:trampoline,代码行数:10,代码来源:task2_instance.c

示例14: TaskManagementTest_seq11_t4_instance

/*create the test suite with all the test cases*/
TestRef TaskManagementTest_seq11_t4_instance(void)
{
	EMB_UNIT_TESTFIXTURES(fixtures) {
		new_TestFixture("test_t4_instance",test_t4_instance)
	};
	EMB_UNIT_TESTCALLER(TaskManagementTest,"TaskManagementTest_sequence11",NULL,NULL,fixtures);

	return (TestRef)&TaskManagementTest;
}
开发者ID:1984c,项目名称:trampoline,代码行数:10,代码来源:task4_instance.c

示例15: InterruptsTest_seq4_t1_instance

/*create the test suite with all the test cases*/
TestRef InterruptsTest_seq4_t1_instance(void)
{
	EMB_UNIT_TESTFIXTURES(fixtures) {
		new_TestFixture("test_t1_instance",test_t1_instance)
	};
	EMB_UNIT_TESTCALLER(InterruptsTest,"InterruptsTest_sequence4",NULL,NULL,fixtures);
	
	return (TestRef)&InterruptsTest;
}
开发者ID:1984c,项目名称:trampoline,代码行数:10,代码来源:task1_instance.c


注:本文中的EMB_UNIT_TESTCALLER函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。