MCPcopy Create free account
hub / github.com/buger/jsonparser / bytesEqualStrSafe

Function bytesEqualStrSafe

bytes_unsafe_test.go:21–23  ·  view source on GitHub ↗

Test helper for SYS-REQ-001 and SYS-REQ-008.

(abytes []byte, bstr string)

Source from the content-addressed store, hash-verified

19
20// Test helper for SYS-REQ-001 and SYS-REQ-008.
21func bytesEqualStrSafe(abytes []byte, bstr string) bool {
22 return bstr == string(abytes)
23}
24
25// Test helper for SYS-REQ-001 and SYS-REQ-008.
26func bytesEqualStrUnsafeSlower(abytes *[]byte, bstr string) bool {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected