mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
17 lines
354 B
Go
17 lines
354 B
Go
|
// Copyright (c) Tailscale Inc & AUTHORS
|
||
|
// SPDX-License-Identifier: BSD-3-Clause
|
||
|
|
||
|
//go:build linux && !android && ts_package_container
|
||
|
|
||
|
package hostinfo
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestInContainer(t *testing.T) {
|
||
|
if got := inContainer(); !got.EqualBool(true) {
|
||
|
t.Errorf("inContainer = %v; want true due to ts_package_container build tag", got)
|
||
|
}
|
||
|
}
|