A container registry that uses the AT Protocol for manifest storage and S3 for blob storage.
1package db
2
3import "testing"
4
5func TestUser_Struct(t *testing.T) {
6 user := &User{
7 DID: "did:plc:test",
8 Handle: "alice.bsky.social",
9 PDSEndpoint: "https://bsky.social",
10 }
11
12 if user.DID != "did:plc:test" {
13 t.Errorf("Expected DID %q, got %q", "did:plc:test", user.DID)
14 }
15
16 if user.Handle != "alice.bsky.social" {
17 t.Errorf("Expected handle %q, got %q", "alice.bsky.social", user.Handle)
18 }
19
20 if user.PDSEndpoint != "https://bsky.social" {
21 t.Errorf("Expected PDS endpoint %q, got %q", "https://bsky.social", user.PDSEndpoint)
22 }
23}
24
25// RepositoryInfo tests removed - struct definition may vary
26
27// TODO: Add tests for all model structs