| /freebsd-9-stable/contrib/ntp/tests/libntp/ |
| D | lfptostr.c | 50 TEST_ASSERT_EQUAL_STRING("200.0000000000", mfptoa(test.l_ui, test.l_uf, LFP_MAX_PRECISION)); in test_PositiveInteger() 51 TEST_ASSERT_EQUAL_STRING("200000.0000000", mfptoms(test.l_ui, test.l_uf, LFP_MAX_PRECISION_MS)); in test_PositiveInteger() 58 TEST_ASSERT_EQUAL_STRING("-100.0000000000", lfptoa(&test, LFP_MAX_PRECISION)); in test_NegativeInteger() 59 TEST_ASSERT_EQUAL_STRING("-100000.0000000", lfptoms(&test, LFP_MAX_PRECISION_MS)); in test_NegativeInteger() 66 TEST_ASSERT_EQUAL_STRING("200.2500000000", lfptoa(&test, LFP_MAX_PRECISION)); in test_PositiveIntegerWithFraction() 67 TEST_ASSERT_EQUAL_STRING("200250.0000000", lfptoms(&test, LFP_MAX_PRECISION_MS)); in test_PositiveIntegerWithFraction() 74 TEST_ASSERT_EQUAL_STRING("-99.7500000000", lfptoa(&test, LFP_MAX_PRECISION)); in test_NegativeIntegerWithFraction() 75 TEST_ASSERT_EQUAL_STRING("-99750.0000000", lfptoms(&test, LFP_MAX_PRECISION_MS)); in test_NegativeIntegerWithFraction() 82 TEST_ASSERT_EQUAL_STRING("10", lfptoa(&test, 0)); in test_RoundingDownToInteger() 83 TEST_ASSERT_EQUAL_STRING("10250", lfptoms(&test, 0)); in test_RoundingDownToInteger() [all …]
|
| D | sfptostr.c | 36 TEST_ASSERT_EQUAL_STRING("300.000000", fptoa(test, SFP_MAX_PRECISION)); in test_PositiveInteger() 37 TEST_ASSERT_EQUAL_STRING("300000.000", fptoms(test, SFP_MAX_PRECISION)); in test_PositiveInteger() 44 TEST_ASSERT_EQUAL_STRING("-200.000000", fptoa(test, SFP_MAX_PRECISION)); in test_NegativeInteger() 45 TEST_ASSERT_EQUAL_STRING("-200000.000", fptoms(test, SFP_MAX_PRECISION)); in test_NegativeInteger() 52 TEST_ASSERT_EQUAL_STRING("300.500000", fptoa(test, SFP_MAX_PRECISION)); in test_PositiveIntegerPositiveFraction() 53 TEST_ASSERT_EQUAL_STRING("300500.000", fptoms(test, SFP_MAX_PRECISION)); in test_PositiveIntegerPositiveFraction() 60 TEST_ASSERT_EQUAL_STRING("-200.500000", fptoa(test, SFP_MAX_PRECISION)); in test_NegativeIntegerNegativeFraction() 61 TEST_ASSERT_EQUAL_STRING("-200500.000", fptoms(test, SFP_MAX_PRECISION)); in test_NegativeIntegerNegativeFraction() 68 TEST_ASSERT_EQUAL_STRING("299.750000", fptoa(test, SFP_MAX_PRECISION)); in test_PositiveIntegerNegativeFraction() 69 TEST_ASSERT_EQUAL_STRING("299750.000", fptoms(test, SFP_MAX_PRECISION)); in test_PositiveIntegerNegativeFraction() [all …]
|
| D | msyslog.c | 47 TEST_ASSERT_EQUAL_STRING(exp_buf, act_buf); in test_msnprintf() 63 TEST_ASSERT_EQUAL_STRING(exp_buf, act_buf); in test_msnprintfLiteralPercentm() 78 TEST_ASSERT_EQUAL_STRING(exp_buf, act_buf); in test_msnprintfBackslashLiteralPercentm() 94 TEST_ASSERT_EQUAL_STRING(exp_buf, act_buf); in test_msnprintfBackslashPercent() 111 TEST_ASSERT_EQUAL_STRING(exp_buf, act_buf); in test_msnprintfHangingPercent() 112 TEST_ASSERT_EQUAL_STRING("", act_buf + 1 + strlen(act_buf)); in test_msnprintfHangingPercent() 124 TEST_ASSERT_EQUAL_STRING(fmt, act_buf); in test_format_errmsgHangingPercent() 125 TEST_ASSERT_EQUAL_STRING("", act_buf + 1 + strlen(act_buf)); in test_format_errmsgHangingPercent() 161 TEST_ASSERT_EQUAL_STRING(exp_buf, act_buf); in test_msnprintfTruncate() 162 TEST_ASSERT_EQUAL_STRING(exp_buf + 3, undist); in test_msnprintfTruncate() [all …]
|
| D | socktoa.c | 31 TEST_ASSERT_EQUAL_STRING("192.0.2.10", socktoa(&input)); in test_IPv4AddressWithPort() 32 TEST_ASSERT_EQUAL_STRING("192.0.2.10:123", sockporttoa(&input)); in test_IPv4AddressWithPort() 59 TEST_ASSERT_EQUAL_STRING(expected, socktoa(&input)); in test_IPv6AddressWithPort() 60 TEST_ASSERT_EQUAL_STRING(expected_port, sockporttoa(&input)); in test_IPv6AddressWithPort() 94 TEST_ASSERT_EQUAL_STRING(expected, socktoa(&input)); in test_ScopedIPv6AddressWithPort() 95 TEST_ASSERT_EQUAL_STRING(expected_port, sockporttoa(&input)); in test_ScopedIPv6AddressWithPort()
|
| D | statestr.c | 28 TEST_ASSERT_EQUAL_STRING("restart", eventstr(PEVNT_RESTART)); in test_PeerRestart() 34 TEST_ASSERT_EQUAL_STRING("unspecified", eventstr(EVNT_UNSPEC)); in test_SysUnspecified() 41 TEST_ASSERT_EQUAL_STRING("clk_unspec", ceventstr(CTL_CLK_OKAY)); in test_ClockCodeExists() 47 TEST_ASSERT_EQUAL_STRING("clk_-1", ceventstr(-1)); in test_ClockCodeUnknown()
|
| D | modetoa.c | 25 TEST_ASSERT_EQUAL_STRING("client", modetoa(MODE)); in test_KnownMode() 32 TEST_ASSERT_EQUAL_STRING("mode#100", modetoa(MODE)); in test_UnknownMode()
|
| D | numtoa.c | 26 TEST_ASSERT_EQUAL_STRING("192.0.2.1", numtoa(input)); in test_Address() 35 TEST_ASSERT_EQUAL_STRING("255.255.255.0", numtoa(input)); in test_Netmask()
|
| D | ssl_init.c | 58 TEST_ASSERT_EQUAL_STRING("MD5", keytype_name(KEY_TYPE_MD5)); in test_MD5KeyName() 65 TEST_ASSERT_EQUAL_STRING("SHA1", keytype_name(NID_sha1)); in test_SHA1KeyName()
|
| D | humandate.c | 34 TEST_ASSERT_EQUAL_STRING(expected, humantime(sample)); in test_RegularTime() 53 TEST_ASSERT_EQUAL_STRING(expected, humantime(sample)); in test_CurrentTime()
|
| D | refnumtoa.c | 47 TEST_ASSERT_EQUAL_STRING(expected, refnumtoa(&address)); in test_LocalClock() 72 TEST_ASSERT_EQUAL_STRING(expected, refnumtoa(&address)); in test_UnknownId()
|
| D | numtohost.c | 30 TEST_ASSERT_EQUAL_STRING("127.0.1.1", numtohost(htonl(input))); in test_LoopbackNetNonResolve()
|
| D | uglydate.c | 27 TEST_ASSERT_EQUAL_STRING("3485080800.500000 10:159:14:00:00.500", in test_ConstantDateTime()
|
| D | prettydate.c | 28 TEST_ASSERT_EQUAL_STRING("cfba1ce0.80000000 Wed, Jun 9 2010 14:00:00.500", in test_ConstantDate()
|
| D | timevalops.c | 798 TEST_ASSERT_EQUAL_STRING(E, r); in test_ToString()
|
| D | timespecops.c | 791 TEST_ASSERT_EQUAL_STRING(E, r); in test_ToString()
|
| /freebsd-9-stable/contrib/ntp/sntp/tests/ |
| D | kodFile.c | 52 TEST_ASSERT_EQUAL_STRING("DENY", res->type); in test_ReadCorrectFile() 53 TEST_ASSERT_EQUAL_STRING("192.0.2.5", res->hostname); in test_ReadCorrectFile() 57 TEST_ASSERT_EQUAL_STRING("RSTR", res->type); in test_ReadCorrectFile() 58 TEST_ASSERT_EQUAL_STRING("192.0.2.100", res->hostname); in test_ReadCorrectFile() 72 TEST_ASSERT_EQUAL_STRING("DENY", res->type); in test_ReadFileWithBlankLines() 73 TEST_ASSERT_EQUAL_STRING("192.0.2.5", res->hostname); in test_ReadFileWithBlankLines() 77 TEST_ASSERT_EQUAL_STRING("RSTR", res->type); in test_ReadFileWithBlankLines() 78 TEST_ASSERT_EQUAL_STRING("192.0.2.100", res->hostname); in test_ReadFileWithBlankLines() 82 TEST_ASSERT_EQUAL_STRING("DENY", res->type); in test_ReadFileWithBlankLines() 83 TEST_ASSERT_EQUAL_STRING("example.com", res->hostname); in test_ReadFileWithBlankLines()
|
| D | kodDatabase.c | 38 TEST_ASSERT_EQUAL_STRING(HOST, result->hostname); in test_SingleEntryHandling() 39 TEST_ASSERT_EQUAL_STRING(REASON, result->type); in test_SingleEntryHandling() 61 TEST_ASSERT_EQUAL_STRING(HOST1, result->hostname); in test_MultipleEntryHandling() 62 TEST_ASSERT_EQUAL_STRING(REASON1, result->type); in test_MultipleEntryHandling() 65 TEST_ASSERT_EQUAL_STRING(HOST2, result->hostname); in test_MultipleEntryHandling() 66 TEST_ASSERT_EQUAL_STRING(REASON2, result->type); in test_MultipleEntryHandling() 69 TEST_ASSERT_EQUAL_STRING(HOST3, result->hostname); in test_MultipleEntryHandling() 70 TEST_ASSERT_EQUAL_STRING(REASON3, result->type); in test_MultipleEntryHandling()
|
| D | utilities.c | 92 TEST_ASSERT_EQUAL_STRING(ADDR, ss_to_str(&input)); in test_IPv4Address() 93 TEST_ASSERT_EQUAL_STRING(ADDR, addrinfo_to_str(&inputA)); in test_IPv4Address() 112 TEST_ASSERT_EQUAL_STRING(expected, ss_to_str(&input)); in test_IPv6Address() 115 TEST_ASSERT_EQUAL_STRING(expected, addrinfo_to_str(&inputA)); in test_IPv6Address()
|
| /freebsd-9-stable/contrib/ntp/tests/sandbox/ |
| D | modetoa.c | 10 TEST_ASSERT_EQUAL_STRING("client", modetoa(MODE)); in test_KnownMode() 18 TEST_ASSERT_EQUAL_STRING("mode#1001", modetoa(MODE)); in test_UnknownMode()
|
| D | uglydate.c | 29 TEST_ASSERT_EQUAL_STRING("3485080800.500000 10:159:14:00:00.500", in test_ConstantDateTime()
|
| /freebsd-9-stable/contrib/ntp/tests/ntpd/ |
| D | t-ntp_scanner.c | 31 TEST_ASSERT_EQUAL_STRING("(keyword not found)",temp); in test_keywordIncorrectToken() 37 TEST_ASSERT_EQUAL_STRING("server",temp); in test_keywordServerToken()
|
| D | ntp_prio_q.c | 77 TEST_ASSERT_EQUAL_STRING(e_ptr_returned->str, "string"); in test_OneElementQueue()
|
| /freebsd-9-stable/contrib/ntp/sntp/unity/ |
| D | unity_fixture.h | 81 #define STRCMP_EQUAL(expected, actual) TEST_ASSERT_EQUAL_STRING((expected), (actual…
|
| D | unity.h | 118 #define TEST_ASSERT_EQUAL_STRING(expected, actual) … macro
|