2023-01-27 21:37:20 +00:00
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2022-04-20 20:14:45 +01:00
|
|
|
|
|
|
|
package iosdeps
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
2023-07-21 02:26:52 +01:00
|
|
|
|
|
|
|
"tailscale.com/tstest/deptest"
|
2022-04-20 20:14:45 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestDeps(t *testing.T) {
|
2023-07-21 02:26:52 +01:00
|
|
|
deptest.DepChecker{
|
|
|
|
GOOS: "ios",
|
|
|
|
GOARCH: "arm64",
|
|
|
|
BadDeps: map[string]string{
|
2024-05-24 07:13:32 +01:00
|
|
|
"testing": "do not use testing package in production code",
|
2023-07-21 02:26:52 +01:00
|
|
|
"text/template": "linker bloat (MethodByName)",
|
|
|
|
"html/template": "linker bloat (MethodByName)",
|
|
|
|
},
|
|
|
|
}.Check(t)
|
2022-04-20 20:14:45 +01:00
|
|
|
}
|