Source file
src/cmd/dist/build_test.go
1
2
3
4
5 package main
6
7 import (
8 "internal/platform"
9 "testing"
10 )
11
12
13
14 func TestMustLinkExternal(t *testing.T) {
15 for _, goos := range okgoos {
16 for _, goarch := range okgoarch {
17 for _, cgoEnabled := range []bool{true, false} {
18 got := mustLinkExternal(goos, goarch, cgoEnabled)
19 want := platform.MustLinkExternal(goos, goarch, cgoEnabled)
20 if got != want {
21 t.Errorf("mustLinkExternal(%q, %q, %v) = %v; want %v", goos, goarch, cgoEnabled, got, want)
22 }
23 }
24 }
25 }
26 }
27
View as plain text