MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / get_podname_proper

Function get_podname_proper

src/packagedcode/cocoapods.py:80–87  ·  view source on GitHub ↗

Podnames in cocoapods sometimes are files inside a pods package (like 'OHHTTPStubs/Default') This returns proper podname in those cases.

(podname)

Source from the content-addressed store, hash-verified

78
79
80def get_podname_proper(podname):
81 """
82 Podnames in cocoapods sometimes are files inside a pods package (like 'OHHTTPStubs/Default')
83 This returns proper podname in those cases.
84 """
85 if '/' in podname:
86 return podname.split('/')[0]
87 return podname
88
89
90def get_hashed_path(name):

Callers 1

get_hashed_pathFunction · 0.85

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected