MCPcopy Create free account
hub / github.com/nodejs/node / get_spec_name

Function get_spec_name

deps/v8/third_party/abseil-cpp/absl/abseil.podspec.gen.py:137–142  ·  view source on GitHub ↗

Converts the label of bazel rule to the name of podspec.

(label)

Source from the content-addressed store, hash-verified

135
136
137def get_spec_name(label):
138 """Converts the label of bazel rule to the name of podspec."""
139 assert label.startswith("//absl/"), "{} doesn't start with //absl/".format(
140 label)
141 # e.g. //absl/apple/banana -> abseil/apple/banana
142 return "abseil/" + label[7:]
143
144
145def write_podspec(f, rules, args):

Callers 2

build_rule_directoryFunction · 0.85
write_podspec_ruleFunction · 0.85

Calls 1

formatMethod · 0.65

Tested by

no test coverage detected