MCPcopy Index your code
hub / github.com/prometheus/client_python / _MockPlatform

Class _MockPlatform

tests/test_platform_collector.py:45–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44
45class _MockPlatform:
46 def __init__(self):
47 self._system = "system"
48
49 def python_version_tuple(self):
50 return "pvt_major", "pvt_minor", "pvt_patchlevel"
51
52 def python_version(self):
53 return "python_version"
54
55 def python_implementation(self):
56 return "python_implementation"
57
58 def system(self):
59 return self._system
60
61 def java_ver(self):
62 return (
63 "jv_release",
64 "jv_vendor",
65 ("vm_name", "vm_release", "vm_vendor"),
66 ("os_name", "os_version", "os_arch")
67 )

Callers 1

setUpMethod · 0.85

Calls

no outgoing calls

Tested by 1

setUpMethod · 0.68