MCPcopy Create free account
hub / github.com/BYVoid/OpenCC / TEST

Function TEST

deps/google-benchmark/test/commandlineflags_gtest.cc:27–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25#endif // BENCHMARK_OS_WINDOWS
26
27TEST(BoolFromEnv, Default) {
28 ASSERT_EQ(unsetenv("NOT_IN_ENV"), 0);
29 EXPECT_EQ(BoolFromEnv("not_in_env", true), true);
30}
31
32TEST(BoolFromEnv, False) {
33 ASSERT_EQ(setenv("IN_ENV", "0", 1), 0);

Callers

nothing calls this directly

Calls 9

unsetenvFunction · 0.85
BoolFromEnvFunction · 0.85
setenvFunction · 0.85
Int32FromEnvFunction · 0.85
DoubleFromEnvFunction · 0.85
StringFromEnvFunction · 0.85
ElementsAreFunction · 0.85
PairFunction · 0.85
UnorderedElementsAreFunction · 0.85

Tested by

no test coverage detected