MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / test_closest_with_time

Function test_closest_with_time

tests/time/test_comparison.py:135–141  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

133
134
135def test_closest_with_time():
136 instance = pendulum.time(12, 34, 56)
137 t1 = pendulum.time(12, 34, 54)
138 t2 = pendulum.time(12, 34, 59)
139 closest = instance.closest(t1, t2)
140
141 assert_time(closest, 12, 34, 54)
142
143
144def test_closest_with_equals():

Callers

nothing calls this directly

Calls 3

assert_timeFunction · 0.90
timeMethod · 0.80
closestMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…