MCPcopy
hub / github.com/puma/puma-dev / TestHttp_removeTLD_test

Function TestHttp_removeTLD_test

dev/http_test.go:11–15  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9var testHttp HTTPServer
10
11func TestHttp_removeTLD_test(t *testing.T) {
12 str := testHttp.removeTLD("psychic-octo-guide.test")
13
14 assert.Equal(t, "psychic-octo-guide", str)
15}
16
17func TestHttp_removeTLD_noTld(t *testing.T) {
18 str := testHttp.removeTLD("shiny-train")

Callers

nothing calls this directly

Calls 1

removeTLDMethod · 0.80

Tested by

no test coverage detected