MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / stringEqual

Function stringEqual

hintfile_test.go:199–209  ·  view source on GitHub ↗
(a, b []byte)

Source from the content-addressed store, hash-verified

197}
198
199func stringEqual(a, b []byte) bool {
200 if len(a) != len(b) {
201 return false
202 }
203 for i := range a {
204 if a[i] != b[i] {
205 return false
206 }
207 }
208 return true
209}
210
211func TestHintFileWriterReader(t *testing.T) {
212 tmpDir, err := os.MkdirTemp("", "hintfile-test")

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected