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

Function ExpectSubstrOrder

tensorflow/cc/framework/cc_op_gen_test.cc:74–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void ExpectSubstrOrder(const string& s, const string& before,
75 const string& after) {
76 int before_pos = s.find(before);
77 int after_pos = s.find(after);
78 ASSERT_NE(std::string::npos, before_pos);
79 ASSERT_NE(std::string::npos, after_pos);
80 EXPECT_LT(before_pos, after_pos)
81 << before << " is not before " << after << " in " << s;
82}
83
84// Runs WriteCCOps and stores output in (internal_)cc_file_path and
85// (internal_)h_file_path.

Callers 1

TESTFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected