deptest

package
v0.0.0-...-113f59a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

The deptest package contains a shared implementation of negative dependency tests for other packages, making sure we don't start depending on certain packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImportAliasCheck

func ImportAliasCheck(t testing.TB, relDir string)

ImportAliasCheck checks that all packages are imported according to Tailscale conventions.

Types

type DepChecker

type DepChecker struct {
	GOOS    string            // optional
	GOARCH  string            // optional
	BadDeps map[string]string // package => why
}

func (DepChecker) Check

func (c DepChecker) Check(t *testing.T)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL