MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / TEST

Function TEST

tensorflow/lite/toco/toco_cmdline_flags_test.cc:26–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace {
25
26TEST(TocoCmdlineFlagsTest, DefaultValue) {
27 int argc = 1;
28 // Invariant in ANSI C, len(argv) == argc +1 also argv[argc] == nullptr
29 // TF flag parsing lib is relaying on this invariant.
30 const char* args[] = {"toco", nullptr};
31
32 string message;
33 ParsedTocoFlags result_flags;
34
35 EXPECT_TRUE(ParseTocoFlagsFromCommandLineFlags(
36 &argc, const_cast<char**>(args), &message, &result_flags));
37 EXPECT_EQ(result_flags.allow_dynamic_tensors.value(), true);
38}
39
40TEST(TocoCmdlineFlagsTest, ParseFlags) {
41 int argc = 2;

Callers

nothing calls this directly

Calls 2

valueMethod · 0.45

Tested by

no test coverage detected