MCPcopy Create free account
hub / github.com/NVIDIA/DALI / assertMatch

Method assertMatch

dali/test/python/autograph/pyct/test_ast_util.py:133–136  ·  view source on GitHub ↗
(self, target_str, pattern_str)

Source from the content-addressed store, hash-verified

131 self.assertDictEqual(result.f(3), {"a": 3, "c": 1, "d": "e"})
132
133 def assertMatch(self, target_str, pattern_str):
134 node = parser.parse_expression(target_str)
135 pattern = parser.parse_expression(pattern_str)
136 self.assertTrue(ast_util.matches(node, pattern))
137
138 def assertNoMatch(self, target_str, pattern_str):
139 node = parser.parse_expression(target_str)

Callers 2

test_matches_symbolsMethod · 0.95

Calls 1

matchesMethod · 0.45

Tested by

no test coverage detected