archtest

package module
v0.0.0-...-f1b53a4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2019 License: MIT Imports: 5 Imported by: 0

README

Archtest

Build Status

Unit test your golang architecture

Complete examples in archtest_test.go

Checking for dependencies
archtest.Package(t, "github.com/myorg/myproject/....").
    ShouldNotDependOn("github.com/some/package")
Checking for direct dependencies
archtest.Package(t, "github.com/myorg/myproject/....").
    ShouldNotDependDirectlyOn("github.com/some/package")
Including Tests
archtest.Package(t, "github.com/myorg/myproject/....").
    IncludeTests().
    ShouldNotDependDirectlyOn("github.com/some/package")

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PackageTest

type PackageTest struct {
	// contains filtered or unexported fields
}

func Package

func Package(t TestingT, packageName ...string) *PackageTest

func (PackageTest) Ignoring

func (t PackageTest) Ignoring(e ...string) *PackageTest

func (PackageTest) IncludeTests

func (t PackageTest) IncludeTests() *PackageTest

func (PackageTest) ShouldNotDependDirectlyOn

func (t PackageTest) ShouldNotDependDirectlyOn(pkgs ...string)

func (*PackageTest) ShouldNotDependOn

func (t *PackageTest) ShouldNotDependOn(pkgs ...string)

type TestingT

type TestingT interface {
	Error(args ...interface{})
}

Jump to

Keyboard shortcuts

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