MCPcopy Create free account
hub / github.com/antirez/ds4 / test_env_bool

Function test_env_bool

tests/ds4_test.c:16–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 const char *model_path = getenv("DS4_TEST_MODEL");
15 return (model_path && model_path[0]) ? model_path : "ds4flash.gguf";
16}
17
18static bool test_env_bool(const char *name) {
19 const char *v = getenv(name);
20 return v && v[0] && strcmp(v, "0") != 0;
21}
22

Calls

no outgoing calls

Tested by

no test coverage detected