hostinfo_container_linux_test.go 354 B

12345678910111213141516
  1. // Copyright (c) Tailscale Inc & AUTHORS
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. //go:build linux && !android && ts_package_container
  4. package hostinfo
  5. import (
  6. "testing"
  7. )
  8. func TestInContainer(t *testing.T) {
  9. if got := inContainer(); !got.EqualBool(true) {
  10. t.Errorf("inContainer = %v; want true due to ts_package_container build tag", got)
  11. }
  12. }