Slimfast: get rid of spew dep

This commit is contained in:
kayos@tcp.direct 2023-12-01 23:26:56 -08:00
parent 2e7b11999c
commit 4865155073
Signed by: kayos
GPG Key ID: 4B841471B4BEE979
3 changed files with 3 additions and 10 deletions

5
go.mod

@ -2,7 +2,4 @@ module git.tcp.direct/kayos/ifupdown
go 1.21.4
require (
git.tcp.direct/kayos/common v0.9.6
github.com/davecgh/go-spew v1.1.1
)
require git.tcp.direct/kayos/common v0.9.6

2
go.sum

@ -1,4 +1,2 @@
git.tcp.direct/kayos/common v0.9.6 h1:EITtktxZF/zkzqAhZZxvm6cZpFYoZ0P/gLB9RPatKUY=
git.tcp.direct/kayos/common v0.9.6/go.mod h1:8y9b+PN1+ZVaQ/VugD9dkKe+uqhE8jH7a64RyF7h2rM=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=

@ -7,8 +7,6 @@ import (
"fmt"
"strings"
"testing"
"github.com/davecgh/go-spew/spew"
)
func TestAddressConfig_String(t *testing.T) {
@ -293,10 +291,10 @@ iface eth0 inet static
switch {
case len(tt.wantErrors) < 1 && validationErrs != nil:
t.Errorf("Validate(): %v", validationErrs)
spew.Dump(iface)
t.Logf("%v", iface)
case len(tt.wantErrors) != 0 && len(iface.errs) == 0:
t.Errorf("interface error: %v, wanted %+v", iface.errs, tt.wantErrors)
t.Logf("%s", spew.Sdump(iface))
t.Logf("%v", iface)
case len(tt.wantErrors) != 0 && len(iface.errs) != 0:
need := len(tt.wantErrors)
for _, err := range iface.errs {