17 lines
323 B
Go
17 lines
323 B
Go
package nixstore
|
|
|
|
import "testing"
|
|
|
|
func TestRemoteStore(t *testing.T) {
|
|
d, err := OpenDaemon(DaemonSock)
|
|
if err != nil {
|
|
t.Fatalf("OpenDaemon: %v", err)
|
|
}
|
|
defer d.Close()
|
|
|
|
ni, err := d.NARInfo("/nix/store/whdqnq4nqxx8idwiv36rjnfa9rld3xfq-nix-2.3.16")
|
|
if err != nil {
|
|
t.Fatalf("NARInfo: %v", err)
|
|
}
|
|
t.Log(ni)
|
|
}
|