MCPcopy Index your code
hub / github.com/pgadmin-org/pgadmin4 / is_version_in_range

Function is_version_in_range

web/pgadmin/browser/utils.py:76–86  ·  view source on GitHub ↗
(sversion, min_ver, max_ver)

Source from the content-addressed store, hash-verified

74
75
76def is_version_in_range(sversion, min_ver, max_ver):
77 assert (max_ver is None or isinstance(max_ver, int))
78 assert (min_ver is None or isinstance(min_ver, int))
79
80 if min_ver is None and max_ver is None:
81 return True
82
83 if (min_ver is None or min_ver <= sversion) and \
84 (max_ver is None or max_ver >= sversion):
85 return True
86 return False
87
88
89class PGChildModule():

Callers 3

test_result_is_trueMethod · 0.90
test_result_is_falseMethod · 0.90
backend_supportedMethod · 0.85

Calls

no outgoing calls

Tested by 2

test_result_is_trueMethod · 0.72
test_result_is_falseMethod · 0.72