You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/paths/paths_test.go

24 lines
435 B
Go

// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause
package paths
import (
"runtime"
"testing"
)
func TestDefaultTailscaledSocket(t *testing.T) {
path := DefaultTailscaledSocket()
if path == "" {
t.Error("DefaultTailscaledSocket() returned empty")
}
}
func TestStateFile(t *testing.T) {
path := StateFile()
if path == "" && runtime.GOOS != "js" {
t.Error("StateFile() returned empty")
}
}