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

Function test_samplerate

libsigrok4DSL/tests/check_strutil.c:42–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42static void test_samplerate(uint64_t samplerate, const char *expected)
43{
44 char *s;
45
46 s = sr_samplerate_string(samplerate);
47 fail_unless(s != NULL);
48 fail_unless(!strcmp(s, expected),
49 "Invalid result for '%s': %s.", expected, s);
50 g_free(s);
51}
52
53/*
54 * Check various inputs for sr_samplerate_string():

Callers 2

check_strutil.cFile · 0.85
START_TESTFunction · 0.85

Calls 1

sr_samplerate_stringFunction · 0.85

Tested by

no test coverage detected