Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/CadQuery/cadquery
/ test_getitem
Function
test_getitem
tests/test_sketch.py:891–895 ·
view source on GitHub ↗
(s2)
Source
from the content-addressed store, hash-verified
889
890
891
def
test_getitem(s2):
892
893
assert len(s2[0].vals()) == 1
894
assert len(s2.reset()[-2:].vals()) == 2
895
assert len(s2.reset()[[0, 1]].vals()) == 2
896
897
898
def
test_invoke(s1, s2):
Callers
nothing calls this directly
Calls
2
reset
Method · 0.80
vals
Method · 0.45
Tested by
no test coverage detected