17 lines
203 B
Go
17 lines
203 B
Go
package sway
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestGetTree(t *testing.T) {
|
|
root, err := GetTree(context.Background())
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
|
|
fmt.Println(root.ID, root.Name)
|
|
}
|