(t *testing.T)
| 9 | var testHttp HTTPServer |
| 10 | |
| 11 | func 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 | |
| 17 | func TestHttp_removeTLD_noTld(t *testing.T) { |
| 18 | str := testHttp.removeTLD("shiny-train") |