MCPcopy Index your code
hub / github.com/PyVRP/PyVRP / test_attribute_getters

Function test_attribute_getters

tests/test_LoadSegment.py:14–21  ·  view source on GitHub ↗

Tests that the attribute member functions return the passed in values.

(delivery: int, pickup: int, load: int)

Source from the content-addressed store, hash-verified

12 [(1, 2, 3), (0, 0, 0), (_INT_MAX, _INT_MAX, _INT_MAX)],
13)
14def test_attribute_getters(delivery: int, pickup: int, load: int):
15 """
16 Tests that the attribute member functions return the passed in values.
17 """
18 load_segment = LoadSegment(delivery, pickup, load)
19 assert_equal(load_segment.delivery(), delivery)
20 assert_equal(load_segment.pickup(), pickup)
21 assert_equal(load_segment.load(), load)
22
23
24@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 4

deliveryMethod · 0.95
pickupMethod · 0.95
loadMethod · 0.95
LoadSegmentClass · 0.85

Tested by

no test coverage detected