Files
at-container-registry/pkg/appview/db/models_test.go
Evan Jarrett b0799cd94d unit tests
2025-10-28 17:40:11 -05:00

28 lines
658 B
Go

package db
import "testing"
func TestUser_Struct(t *testing.T) {
user := &User{
DID: "did:plc:test",
Handle: "alice.bsky.social",
PDSEndpoint: "https://bsky.social",
}
if user.DID != "did:plc:test" {
t.Errorf("Expected DID %q, got %q", "did:plc:test", user.DID)
}
if user.Handle != "alice.bsky.social" {
t.Errorf("Expected handle %q, got %q", "alice.bsky.social", user.Handle)
}
if user.PDSEndpoint != "https://bsky.social" {
t.Errorf("Expected PDS endpoint %q, got %q", "https://bsky.social", user.PDSEndpoint)
}
}
// RepositoryInfo tests removed - struct definition may vary
// TODO: Add tests for all model structs