diff --git a/x/model/name_test.go b/x/model/name_test.go index 54f44ce8..8c0da86e 100644 --- a/x/model/name_test.go +++ b/x/model/name_test.go @@ -396,4 +396,19 @@ func ExampleName_CompareFold_sort() { // mistral:latest } +func ExampleName_DisplayFullest() { + for _, s := range []string{ + "example.com/jmorganca/mistral:latest+Q4_0", + "mistral:latest+Q4_0", + "mistral:latest", + } { + fmt.Println(ParseName(s).DisplayFullest()) + } + + // Output: + // example.com/jmorganca/mistral:latest + // mistral:latest + // mistral:latest +} + func keep[T any](v T) T { return v }