MCPcopy Index your code
hub / github.com/nodejs/node / test_GetLdflags

Method test_GetLdflags

tools/gyp/pylib/gyp/xcode_emulation_test.py:36–50  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 return path
35
36 def test_GetLdflags(self):
37 target = {
38 "type": "static_library",
39 "configurations": {
40 "Release": {},
41 },
42 }
43 configuration_name = "Release"
44 xcode_settings = XcodeSettings(target)
45 ldflags = xcode_settings.GetLdflags(
46 configuration_name, "PRODUCT_DIR", self.GypToBuildPath, "arm64"
47 )
48
49 # Do not quote `-arch arm64` with spaces in one string.
50 self.assertEqual(ldflags, ["-arch", "arm64", "-LPRODUCT_DIR"])
51
52
53if __name__ == "__main__":

Callers

nothing calls this directly

Calls 2

GetLdflagsMethod · 0.95
XcodeSettingsClass · 0.90

Tested by

no test coverage detected