fixes
This commit is contained in:
@@ -32,6 +32,16 @@ func TestNormalizeAndExtractID(t *testing.T) {
|
||||
if got := ExtractID(mapped2); got != "777" {
|
||||
t.Fatalf("mapped key=%q", got)
|
||||
}
|
||||
attrsOnly := map[string]any{"eprel_id": "888"}
|
||||
if got := ExtractID(nil, nil, attrsOnly); got != "888" {
|
||||
t.Fatalf("attrs extract=%q", got)
|
||||
}
|
||||
if got := ExtractID(map[string]any{"eprel_id": "0000"}); got != "" {
|
||||
t.Fatalf("placeholder must be empty, got %q", got)
|
||||
}
|
||||
if got := NormalizeID("0000"); got != "" {
|
||||
t.Fatalf("NormalizeID placeholder=%q", got)
|
||||
}
|
||||
}
|
||||
|
||||
func TestClientFetch_httptest(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user