28 lines
658 B
Go
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
|