Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 721 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 721 Bytes

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")