We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 634e28f commit d0452fbCopy full SHA for d0452fb
architecture/oci-platform_test.go
@@ -0,0 +1,23 @@
1
+package architecture_test
2
+
3
+import (
4
+ "testing"
5
6
+ "github.com/docker-library/bashbrew/architecture"
7
+)
8
9
+func TestString(t *testing.T) {
10
+ tests := map[string]string{
11
+ "amd64": "linux/amd64",
12
+ "arm32v6": "linux/arm/v6",
13
+ "windows-amd64": "windows/amd64",
14
+ }
15
+ for arch, platform := range tests {
16
+ t.Run(arch, func(t *testing.T) {
17
+ oci := architecture.SupportedArches[arch]
18
+ if ociPlatform := oci.String(); platform != ociPlatform {
19
+ t.Errorf("expected %q; got %q", platform, ociPlatform)
20
21
+ })
22
23
+}
0 commit comments