MCPcopy Create free account
hub / github.com/bazelbuild/bazel / read_data_file

Function read_data_file

scripts/docs/rewriter_test.py:35–42  ·  view source on GitHub ↗
(basename, in_or_out_fragment)

Source from the content-addressed store, hash-verified

33
34
35def read_data_file(basename, in_or_out_fragment):
36 path = os.path.join(
37 os.getenv("TEST_SRCDIR"),
38 os.getenv("TEST_WORKSPACE"),
39 "scripts/docs/testdata",
40 in_or_out_fragment, basename)
41 with open(path, "rt", encoding="utf-8") as f:
42 return path, f.read()
43
44
45class RewriteLinksTest(parameterized.TestCase):

Callers 1

testRewriteMethod · 0.70

Calls 2

readMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…