MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / START_TEST

Function START_TEST

libsigrok4DSL/tests/check_strutil.c:86–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 test_samplerate(SR_HZ(550), "550 Hz");
85}
86END_TEST
87
88START_TEST(test_khz)
89{
90 test_samplerate(1000, "1 kHz");
91 test_samplerate(99000, "99 kHz");
92 test_samplerate(225000, "225 kHz");
93 test_samplerate(1234, "1.234 kHz");
94 test_samplerate(12345, "12.345 kHz");
95 test_samplerate(123456, "123.456 kHz");
96 test_samplerate(1034, "1.034 kHz");
97 test_samplerate(1004, "1.004 kHz");
98 test_samplerate(1230, "1.230 kHz");
99
100 /* Again, but now using SR_KHZ(). */
101 test_samplerate(SR_KHZ(1), "1 kHz");
102 test_samplerate(SR_KHZ(99), "99 kHz");
103 test_samplerate(SR_KHZ(225), "225 kHz");
104 test_samplerate(SR_KHZ(1.234), "1.234 kHz");
105 test_samplerate(SR_KHZ(12.345), "12.345 kHz");
106 test_samplerate(SR_KHZ(123.456), "123.456 kHz");
107 test_samplerate(SR_KHZ(1.204), "1.204 kHz");
108 test_samplerate(SR_KHZ(1.034), "1.034 kHz");
109 test_samplerate(SR_KHZ(1.004), "1.004 kHz");
110 test_samplerate(SR_KHZ(1.230), "1.230 kHz");
111}
112END_TEST
113
114START_TEST(test_mhz)

Callers

nothing calls this directly

Calls 1

test_samplerateFunction · 0.85

Tested by

no test coverage detected