summaryrefslogtreecommitdiffhomepage
path: root/util/linuxfw/linuxfwtest
diff options
context:
space:
mode:
authorAndrew Lytvynov <awly@tailscale.com>2026-04-24 15:51:38 -0700
committerAndrew Lytvynov <awly@tailscale.com>2026-04-24 15:52:28 -0700
commit6cdc2afd87a51c756eb196b730786ec87598b80d (patch)
treeeea443044d473e27900b344f10f4c5201343f925 /util/linuxfw/linuxfwtest
parent1b40911611b37947bdc905dec30b2914af540920 (diff)
downloadtailscale-awly/deadcode-linuxfwtest.tar.xz
tailscale-awly/deadcode-linuxfwtest.zip
util/linuxfw/linuxfwtest: remove unused packageawly/deadcode-linuxfwtest
Added in 2022, this appears to be unused now. Updates #cleanup Signed-off-by: Andrew Lytvynov <awly@tailscale.com>
Diffstat (limited to 'util/linuxfw/linuxfwtest')
-rw-r--r--util/linuxfw/linuxfwtest/linuxfwtest.go31
-rw-r--r--util/linuxfw/linuxfwtest/linuxfwtest_unsupported.go18
2 files changed, 0 insertions, 49 deletions
diff --git a/util/linuxfw/linuxfwtest/linuxfwtest.go b/util/linuxfw/linuxfwtest/linuxfwtest.go
deleted file mode 100644
index bf1477ad9..000000000
--- a/util/linuxfw/linuxfwtest/linuxfwtest.go
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright (c) Tailscale Inc & contributors
-// SPDX-License-Identifier: BSD-3-Clause
-
-//go:build cgo && linux
-
-// Package linuxfwtest contains tests for the linuxfw package. Go does not
-// support cgo in tests, and we don't want the main package to have a cgo
-// dependency, so we put all the tests here and call them from the main package
-// in tests intead.
-package linuxfwtest
-
-import (
- "testing"
- "unsafe"
-)
-
-/*
-#include <sys/socket.h> // socket()
-*/
-import "C"
-
-type SizeInfo struct {
- SizeofSocklen uintptr
-}
-
-func TestSizes(t *testing.T, si *SizeInfo) {
- want := unsafe.Sizeof(C.socklen_t(0))
- if want != si.SizeofSocklen {
- t.Errorf("sockLen has wrong size; want=%d got=%d", want, si.SizeofSocklen)
- }
-}
diff --git a/util/linuxfw/linuxfwtest/linuxfwtest_unsupported.go b/util/linuxfw/linuxfwtest/linuxfwtest_unsupported.go
deleted file mode 100644
index ec2d24d35..000000000
--- a/util/linuxfw/linuxfwtest/linuxfwtest_unsupported.go
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright (c) Tailscale Inc & contributors
-// SPDX-License-Identifier: BSD-3-Clause
-
-//go:build !cgo || !linux
-
-package linuxfwtest
-
-import (
- "testing"
-)
-
-type SizeInfo struct {
- SizeofSocklen uintptr
-}
-
-func TestSizes(t *testing.T, si *SizeInfo) {
- t.Skip("not supported without cgo")
-}