MCPcopy
hub / github.com/valyala/fasthttp / TestArgsDeleteAll

Function TestArgsDeleteAll

args_test.go:603–615  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

601}
602
603func TestArgsDeleteAll(t *testing.T) {
604 t.Parallel()
605 var a Args
606 a.Add("q1", "foo")
607 a.Add("q1", "bar")
608 a.Add("q1", "baz")
609 a.Add("q1", "quux")
610 a.Add("q2", "1234")
611 a.Del("q1")
612 if a.Len() != 1 || a.Has("q1") {
613 t.Fatalf("Expected q1 arg to be completely deleted. Current Args: %q", a.String())
614 }
615}
616
617func TestIssue932(t *testing.T) {
618 t.Parallel()

Callers

nothing calls this directly

Calls 5

AddMethod · 0.95
DelMethod · 0.95
LenMethod · 0.95
HasMethod · 0.95
StringMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…