mirror of
https://github.com/go-i2p/checki2cp.git
synced 2025-06-08 17:21:41 -04:00
30 lines
534 B
Go
30 lines
534 B
Go
![]() |
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")
|
||
|
}
|
||
|
}
|