Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/CadQuery/cadquery
/ test_map
Function
test_map
tests/test_sketch.py:885–888 ·
view source on GitHub ↗
(s1, f)
Source
from the content-addressed store, hash-verified
883
884
885
def
test_map(s1, f):
886
assert s1.map(
887
lambda
x: f.moved(x.Center())
888
).replace().reset().val().Area() == approx(0.2)
889
890
891
def
test_getitem(s2):
Callers
nothing calls this directly
Calls
7
reset
Method · 0.80
Area
Method · 0.45
val
Method · 0.45
replace
Method · 0.45
map
Method · 0.45
moved
Method · 0.45
Center
Method · 0.45
Tested by
no test coverage detected