Files
checki2cp/checki2cp_test.go

30 lines
534 B
Go
Raw Normal View History

2019-07-10 22:46:58 -04:00
package checki2p
import (
"testing"
)
func TestClient(t *testing.T) {
ok, err := CheckI2PIsRunning()
if err != nil {
t.Fatal(err)
}
if ok {
t.Log("I2P is running, successfully confirmed I2CP")
} else {
t.Log("I2P is not running, further testing is needed")
}
}
func TestRouter(t *testing.T) {
ok, err := CheckI2PIsInstalledDefaultLocation()
if err != nil {
t.Fatal(err)
}
if ok {
t.Log("I2P is installed, successfully confirmed")
} else {
t.Log("I2P is in a default location, user feedback is needed")
}
}