示例#1
0
    def test_generated_cgo_ldflags(
        self, monkeypatch, cgo_ldflags_env, library_paths, ldflags_env, expected
    ):
        monkeypatch.setenv("CGO_LDFLAGS", cgo_ldflags_env)
        monkeypatch.setenv("LDFLAGS", ldflags_env)

        assert go._get_cgo_ldflags(library_paths) == expected
示例#2
0
 def test_generated_cgo_ldflags(self):
     self.assertThat(go._get_cgo_ldflags(self.library_paths),
                     Equals(self.expected))