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

Function Explain

tensorflow/compiler/jit/node_matchers_test.cc:42–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41template <typename M, typename T>
42string Explain(const T& t, const M& m) {
43 ::testing::StringMatchResultListener listener;
44 EXPECT_THAT(t, ::testing::Not(m)); // For the error message.
45 EXPECT_FALSE(m.MatchAndExplain(t, &listener));
46 return listener.str();
47}
48
49TEST(NodeMatchers, CheckAgainstConstant) {
50 Scope root = Scope::NewRootScope().ExitOnError();

Callers 1

TESTFunction · 0.70

Calls 2

NotFunction · 0.85
MatchAndExplainMethod · 0.45

Tested by

no test coverage detected