MCPcopy
hub / github.com/perkeep/perkeep / parseXattrList

Function parseXattrList

pkg/fs/fs_test.go:519–529  ·  view source on GitHub ↗
(from []byte)

Source from the content-addressed store, hash-verified

517}
518
519func parseXattrList(from []byte) map[string]bool {
520 attrNames := bytes.Split(from, []byte{0})
521 m := map[string]bool{}
522 for _, nm := range attrNames {
523 if len(nm) == 0 {
524 continue
525 }
526 m[string(nm)] = true
527 }
528 return m
529}
530
531func TestXattr(t *testing.T) {
532 setxattr := func(path, attr string, data []byte, flags int) error {

Callers 1

TestXattrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected