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