MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / TestGetDomain

Function TestGetDomain

internal/httpapi/domains_test.go:47–53  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

45}
46
47func TestGetDomain(t *testing.T) {
48 srv := testServer(t)
49 code, body := getJSON(t, srv.URL+"/v1/domains/acme.com", "good")
50 if code != 200 || body["domain"] != "acme.com" || body["verified"] != true {
51 t.Fatalf("unexpected get domain: %d %v", code, body)
52 }
53}
54
55func TestGetDomainNotFound(t *testing.T) {
56 srv := testServer(t)

Callers

nothing calls this directly

Calls 2

testServerFunction · 0.85
getJSONFunction · 0.85

Tested by

no test coverage detected