MCPcopy Index your code
hub / github.com/bazelbuild/bazel / _print_diff

Function _print_diff

tools/aquery_differ/aquery_differ.py:92–101  ·  view source on GitHub ↗
(output_files, before_val, after_val, attr, before_file,
                after_file)

Source from the content-addressed store, hash-verified

90
91
92def _print_diff(output_files, before_val, after_val, attr, before_file,
93 after_file):
94 diff = "\n".join(
95 map(_colorize, [
96 s.strip("\n") for s in difflib.unified_diff(before_val, after_val,
97 before_file, after_file)
98 ]))
99 print(("[%s]\n"
100 "Difference in the action that generates the following output(s):"
101 "\n\t%s\n%s\n") % (attr, "\n\t".join(output_files.split()), diff))
102
103
104def _map_artifact_id_to_path(artifacts, path_fragments):

Callers 1

_aquery_diffFunction · 0.85

Calls 3

splitMethod · 0.80
joinMethod · 0.45
stripMethod · 0.45

Tested by

no test coverage detected