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

Function Explain

tensorflow/compiler/xla/service/pattern_matcher_gmock_test.cc:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35template <typename MatchedTy>
36string Explain(
37 const MatchedTy& val,
38 const ::testing::Matcher<typename std::remove_cv<MatchedTy>::type>& m) {
39 ::testing::StringMatchResultListener listener;
40 EXPECT_THAT(val, ::testing::Not(m)); // For the error message.
41 EXPECT_FALSE(m.MatchAndExplain(val, &listener));
42 return listener.str();
43}
44
45// This file tests the GmockMatch function. The actual explanation and
46// description returned by matchers is tested in pattern_matchers_test.

Callers

nothing calls this directly

Calls 2

NotFunction · 0.85
MatchAndExplainMethod · 0.45

Tested by

no test coverage detected