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

Function TestRegisterDomainInvalid

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

Source from the content-addressed store, hash-verified

78}
79
80func TestRegisterDomainInvalid(t *testing.T) {
81 srv := testServer(t)
82 code, body := postJSON(t, srv.URL+"/v1/domains", "good", map[string]any{"domain": "nodot"})
83 if code != 400 || errCode(body) != "invalid_domain" {
84 t.Fatalf("want 400 invalid_domain, got %d %v", code, body)
85 }
86}
87
88func TestRegisterDomainOverCap(t *testing.T) {
89 srv := testServer(t)

Callers

nothing calls this directly

Calls 3

testServerFunction · 0.85
postJSONFunction · 0.85
errCodeFunction · 0.85

Tested by

no test coverage detected