You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
611 B
31 lines
611 B
// Copyright (c) Tailscale Inc & AUTHORS
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
package testenv
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"tailscale.com/tstest/deptest"
|
|
)
|
|
|
|
func TestDeps(t *testing.T) {
|
|
deptest.DepChecker{
|
|
BadDeps: map[string]string{
|
|
"testing": "see pkg docs",
|
|
},
|
|
}.Check(t)
|
|
}
|
|
|
|
func TestInParallelTestTrue(t *testing.T) {
|
|
t.Parallel()
|
|
if !InParallelTest(t) {
|
|
t.Fatal("InParallelTest should return true once t.Parallel has been called")
|
|
}
|
|
}
|
|
|
|
func TestInParallelTestFalse(t *testing.T) {
|
|
if InParallelTest(t) {
|
|
t.Fatal("InParallelTest should return false before t.Parallel has been called")
|
|
}
|
|
}
|
|
|