mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-26 19:45:35 +00:00
20 lines
475 B
Go
20 lines
475 B
Go
|
// Copyright (c) Tailscale Inc & AUTHORS
|
||
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
|
||
|
package syspolicy
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func TestDefaultHandlerReadValues(t *testing.T) {
|
||
|
var h defaultHandler
|
||
|
|
||
|
got, err := h.ReadString(string(AdminConsoleVisibility))
|
||
|
if got != "" || err != ErrNoSuchKey {
|
||
|
t.Fatalf("got %v err %v", got, err)
|
||
|
}
|
||
|
result, err := h.ReadUInt64(string(LogSCMInteractions))
|
||
|
if result != 0 || err != ErrNoSuchKey {
|
||
|
t.Fatalf("got %v err %v", result, err)
|
||
|
}
|
||
|
}
|