MCPcopy Create free account
hub / github.com/GCWing/BitFun / assert_contains

Function assert_contains

src/apps/relay-server/test_incremental_upload.py:61–68  ·  view source on GitHub ↗
(desc, haystack, needle)

Source from the content-addressed store, hash-verified

59
60
61def assert_contains(desc, haystack, needle):
62 global PASS, FAIL
63 if needle in str(haystack):
64 green(desc)
65 PASS += 1
66 else:
67 red(f"{desc} (expected to contain {needle!r}, got: {haystack!r})")
68 FAIL += 1
69
70
71def b64enc(s: str) -> str:

Callers 1

run_testsFunction · 0.85

Calls 2

greenFunction · 0.85
redFunction · 0.85

Tested by

no test coverage detected