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

Function test_pickle_client_group

tests/test_ProblemData.py:1069–1075  ·  view source on GitHub ↗

Tests that client groups can be serialised and unserialised.

()

Source from the content-addressed store, hash-verified

1067
1068
1069def test_pickle_client_group():
1070 """
1071 Tests that client groups can be serialised and unserialised.
1072 """
1073 before_pickle = ClientGroup(clients=[1, 2, 3], required=False, name="test")
1074 bytes = pickle.dumps(before_pickle)
1075 assert_equal(pickle.loads(bytes), before_pickle)
1076
1077
1078def test_pickle_vehicle_type():

Callers

nothing calls this directly

Calls 1

ClientGroupClass · 0.90

Tested by

no test coverage detected