1
0

test: pretty print result

This commit is contained in:
dump_stack() 2023-05-14 14:06:04 +00:00
parent 87ed8da5b8
commit e10b50a41a
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
2 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,8 @@ package debian
import (
"testing"
"github.com/davecgh/go-spew/spew"
)
func TestGetDebianKernel(t *testing.T) {
@ -13,4 +15,6 @@ func TestGetDebianKernel(t *testing.T) {
if dk.Version.ABI != "4.17.0-2" {
t.Fatalf("wrong abi")
}
t.Logf("%s", spew.Sdump(dk))
}

1
go.mod
View File

@ -12,6 +12,7 @@ require (
github.com/PuerkitoBio/goquery v1.8.1
github.com/alecthomas/kong v0.7.1
github.com/cavaliergopher/grab/v3 v3.0.1
github.com/davecgh/go-spew v1.1.1
github.com/go-git/go-git/v5 v5.6.1
github.com/mattn/go-sqlite3 v1.14.16
github.com/mitchellh/go-homedir v1.1.0