MCPcopy Create free account
hub / github.com/Facets-cloud/flow / TestSlugifyEmpty

Function TestSlugifyEmpty

internal/app/slug_test.go:50–54  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

48}
49
50func TestSlugifyEmpty(t *testing.T) {
51 if _, err := Slugify(""); err == nil {
52 t.Error("Slugify(\"\") should return error")
53 }
54}
55
56func TestSlugifyOnlyPunctuation(t *testing.T) {
57 if _, err := Slugify("!!!"); err == nil {

Callers

nothing calls this directly

Calls 2

SlugifyFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected