sway/find_test.go

19 lines
256 B
Go
Raw Normal View History

2023-10-07 16:36:43 +02:00
package sway
import (
"context"
"fmt"
"testing"
)
func TestFind(t *testing.T) {
root, err := GetTree(context.Background())
if err != nil {
t.Fatal(err)
}
for _, node := range root.FindAll(IsWorkspace) {
fmt.Println(node.Type, node.Name)
}
}