refactor: add String() methods to domain types, replace string() casts

This commit is contained in:
user
2026-02-23 11:58:00 -08:00
parent 594537e6f5
commit 3a1b1e3cd4
5 changed files with 32 additions and 23 deletions

View File

@@ -35,7 +35,7 @@ func TestBuildContainerOptionsUsesImageID(t *testing.T) {
t.Fatalf("buildContainerOptions returned error: %v", err)
}
if opts.Image != string(expectedImageID) {
if opts.Image != expectedImageID.String() {
t.Errorf("expected Image=%q, got %q", expectedImageID, opts.Image)
}