safesocket: remove the IPN protocol support

Updates #6417

Change-Id: I78908633de842d83b2cc8b10a864a0f88ab1b113
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:
Brad Fitzpatrick
2022-11-28 20:08:35 -08:00
committed by Brad Fitzpatrick
parent 06c4c47d46
commit 0cb2ccce7f
11 changed files with 61 additions and 141 deletions

View File

@ -2,16 +2,20 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package version
package version_test
import (
"testing"
"github.com/google/go-cmp/cmp"
"tailscale.com/tstest"
"tailscale.com/version"
)
func TestParse(t *testing.T) {
parse := version.ExportParse
type parsed = version.ExportParsed
tests := []struct {
version string
parsed parsed
@ -71,7 +75,7 @@ func TestAtLeast(t *testing.T) {
}
for _, test := range tests {
got := AtLeast(test.v, test.m)
got := version.AtLeast(test.v, test.m)
if got != test.want {
t.Errorf("AtLeast(%q, %q) = %v, want %v", test.v, test.m, got, test.want)
}