mirror of
https://github.com/moby/moby.git
synced 2026-07-10 08:39:25 +00:00
libnetwork/internal/resolvconf/resolvconf_test.go:63:21: avoid allocations with bytes.NewBufferString (mirror)
rc, err := Parse(bytes.NewBuffer([]byte("options "+tc.options)), "")
^
libnetwork/internal/resolvconf/resolvconf_test.go:106:19: avoid allocations with bytes.NewBufferString (mirror)
rc, err := Parse(bytes.NewBuffer([]byte("nameserver 1.2.3.4")), "")
^
libnetwork/internal/resolvconf/resolvconf_test.go:214:21: avoid allocations with bytes.NewBufferString (mirror)
rc, err := Parse(bytes.NewBuffer([]byte(input)), "")
^
libnetwork/internal/resolvconf/resolvconf_test.go:311:21: avoid allocations with bytes.NewBufferString (mirror)
rc, err := Parse(bytes.NewBuffer([]byte(tc.input)), "/etc/resolv.conf")
^
libnetwork/internal/resolvconf/resolvconf_test.go:418:21: avoid allocations with bytes.NewBufferString (mirror)
rc, err := Parse(bytes.NewBuffer([]byte(tc.input)), "/etc/resolv.conf")
^
libnetwork/internal/resolvconf/resolvconf_test.go:492:21: avoid allocations with bytes.NewBufferString (mirror)
rc, err := Parse(bytes.NewBuffer([]byte(content)), "/etc/resolv.conf")
^
libnetwork/internal/resolvconf/resolvconf_test.go:535:19: avoid allocations with bytes.NewBufferString (mirror)
rc, err := Parse(bytes.NewBuffer([]byte("nameserver 1.2.3.4.5")), "")
^
libnetwork/internal/resolvconf/resolvconf_test.go:548:19: avoid allocations with bytes.NewBufferString (mirror)
rc, err := Parse(bytes.NewBuffer([]byte("nameserver 127.0.0.53")), "/etc/resolv.conf")
^
libnetwork/internal/resolvconf/resolvconf_test.go:569:19: avoid allocations with bytes.NewBufferString (mirror)
rc, err := Parse(bytes.NewBuffer([]byte(input)), "/etc/resolv.conf")
^
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>