MCPcopy Create free account
hub / github.com/dask/dask / test_RuleSet

Function test_RuleSet

dask/tests/test_rewrite.py:90–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88
89
90def test_RuleSet():
91 net = (
92 {
93 add: (
94 {
95 VAR: ({VAR: ({}, [1]), 1: ({}, [0])}, []),
96 inc: ({VAR: ({inc: ({VAR: ({}, [2, 3])}, [])}, [])}, []),
97 },
98 [],
99 ),
100 list: ({VAR: ({}, [5])}, []),
101 sum: ({list: ({VAR: ({VAR: ({VAR: ({}, [4])}, [])}, [])}, [])}, []),
102 },
103 [],
104 )
105 assert rs._net == net
106 assert rs.rules == rules
107
108
109def test_matches():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected