TestSpec_PublicAPI_ExtractDomainFromURL validates the documented behavior of ExtractDomainFromURL as described in the package README.md. Specification: "Extracts the hostname (without port) from a URL string." Specification example: stringutil.ExtractDomainFromURL("https://api.github.com/repos")
(t *testing.T)
| 442 | // |
| 443 | // stringutil.ExtractDomainFromURL("https://api.github.com/repos") // "api.github.com" |
| 444 | func TestSpec_PublicAPI_ExtractDomainFromURL(t *testing.T) { |
| 445 | result := ExtractDomainFromURL("https://api.github.com/repos") |
| 446 | assert.Equal(t, "api.github.com", result, |
| 447 | "ExtractDomainFromURL should return hostname without port (documented example)") |
| 448 | } |
| 449 | |
| 450 | // TestSpec_PublicAPI_SanitizeIdentifierName validates the documented behavior |
| 451 | // of SanitizeIdentifierName as described in the package README.md. |
nothing calls this directly
no test coverage detected