Home / Function/ TestStringToBytesEmpty() — gin Function Reference

TestStringToBytesEmpty() — gin Function Reference

Architecture documentation for the TestStringToBytesEmpty() function in bytesconv_test.go from the gin codebase.

Entity Profile

Relationship Graph

Source Code

internal/bytesconv/bytesconv_test.go lines 90–98

func TestStringToBytesEmpty(t *testing.T) {
	b := StringToBytes("")
	if len(b) != 0 {
		t.Fatalf(`StringToBytes("") length = %d; want 0`, len(b))
	}
	if !bytes.Equal(b, []byte("")) {
		t.Fatalf(`StringToBytes("") = %v; want []byte("")`, b)
	}
}

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free