MCPcopy Index your code
hub / github.com/RustPython/RustPython / MySet

Class MySet

Lib/test/test_collections.py:1425–1431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1423 self.assertIsSubclass(sample, Set)
1424 self.validate_abstract_methods(Set, '__contains__', '__iter__', '__len__')
1425 class MySet(Set):
1426 def __contains__(self, x):
1427 return False
1428 def __len__(self):
1429 return 0
1430 def __iter__(self):
1431 return iter([])
1432 self.validate_comparison(MySet())
1433
1434 def test_hash_Set(self):

Callers 5

test_SetMethod · 0.70
test_isdisjoint_SetMethod · 0.70
test_equality_SetMethod · 0.70
test_arithmetic_SetMethod · 0.70
test_issue_4920Method · 0.70

Calls

no outgoing calls

Tested by 5

test_SetMethod · 0.56
test_isdisjoint_SetMethod · 0.56
test_equality_SetMethod · 0.56
test_arithmetic_SetMethod · 0.56
test_issue_4920Method · 0.56