package claude import "testing" // The amd64 pin is the certified one and must not move with the arm64 one // beside it. The arm64 digest is the official 2.1.312 linux-arm64 binary. func TestReleasePinByArchitecture(t *testing.T) { pin, ok := ReleasePin("amd64") if !ok || pin != ExecutableSHA256 { t.Fatalf("amd64 must be the certified pin, got %q %v", pin, ok) } pin, ok = ReleasePin("arm64") if !ok || pin != "dc4af28917455e009d26704b82a438353a06149e825b6cdf782908b2d28661f5" { t.Fatalf("arm64 pin changed: %q %v", pin, ok) } if pin, ok = ReleasePin("riscv64"); ok || pin != "" { t.Fatal("an architecture with no pinned build has a pin") } }