mirror of
https://github.com/genuinetools/reg.git
synced 2024-06-25 01:04:44 -04:00
20 lines
311 B
Go
20 lines
311 B
Go
![]() |
package main
|
||
|
|
||
|
import (
|
||
|
"strings"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestTags(t *testing.T) {
|
||
|
out, err := run("tags", "busybox")
|
||
|
if err != nil {
|
||
|
t.Fatalf("output: %s, error: %v", string(out), err)
|
||
|
}
|
||
|
expected := `glibc
|
||
|
musl
|
||
|
`
|
||
|
if !strings.HasSuffix(out, expected) {
|
||
|
t.Fatalf("expected: %s\ngot: %s", expected, out)
|
||
|
}
|
||
|
}
|