18 lines
340 B
Go
18 lines
340 B
Go
package nixstore
|
|
|
|
import "testing"
|
|
|
|
func TestNARInfo(t *testing.T) {
|
|
db, err := Open(DefaultStoreDB)
|
|
if err != nil {
|
|
t.Fatalf("Open: %v", err)
|
|
}
|
|
|
|
ni, err := db.NARInfo("/nix/store/yk8ps7v1jhwpj82pigmqjb68ln7bgjbn-acl-2.3.1")
|
|
if err != nil {
|
|
t.Fatalf("NARInfo: %v", err)
|
|
}
|
|
t.Logf("%#v", ni)
|
|
t.Log(ni.String())
|
|
t.Error("meep")
|
|
}
|