mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-06-17 22:55:07 +03:00
Move src/mobile
into main repository
This commit is contained in:
parent
87e936195e
commit
bff8630853
6 changed files with 254 additions and 6 deletions
16
src/mobile/mobile_test.go
Normal file
16
src/mobile/mobile_test.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
package mobile
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestStartYggdrasil(t *testing.T) {
|
||||
ygg := &Yggdrasil{}
|
||||
if err := ygg.StartAutoconfigure(); err != nil {
|
||||
t.Fatalf("Failed to start Yggdrasil: %s", err)
|
||||
}
|
||||
t.Log("Address:", ygg.GetAddressString())
|
||||
t.Log("Subnet:", ygg.GetSubnetString())
|
||||
t.Log("Coords:", ygg.GetCoordsString())
|
||||
if err := ygg.Stop(); err != nil {
|
||||
t.Fatalf("Failed to stop Yggdrasil: %s", err)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue