{"id":27972745,"url":"https://github.com/datosh/gau","last_synced_at":"2025-05-07T23:19:34.315Z","repository":{"id":39618050,"uuid":"497609051","full_name":"datosh/gau","owner":"datosh","description":"Go ArchUnit Test Framework","archived":false,"fork":false,"pushed_at":"2022-06-07T15:13:25.000Z","size":14,"stargazers_count":8,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-19T20:51:51.645Z","etag":null,"topics":["architecture","go","golang","testing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datosh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-05-29T14:07:16.000Z","updated_at":"2024-04-20T11:56:18.000Z","dependencies_parsed_at":"2022-09-16T11:32:21.467Z","dependency_job_id":null,"html_url":"https://github.com/datosh/gau","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datosh%2Fgau","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datosh%2Fgau/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datosh%2Fgau/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datosh%2Fgau/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datosh","download_url":"https://codeload.github.com/datosh/gau/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252968504,"owners_count":21833309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["architecture","go","golang","testing"],"created_at":"2025-05-07T23:19:33.745Z","updated_at":"2025-05-07T23:19:34.302Z","avatar_url":"https://github.com/datosh.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gau\n\nGolang ArchUnit (gau) Test Framework enables you to test your application's\narchitecture using Go's build-in unit-testing capabilities.\n\nAn example rule could look like this:\n\n```go\nfunc TestSimple(t *testing.T) {\n\tPackages(t, \"github.com/datosh/gau/tests/...\").That().\n\t\tResideIn(\"github.com/datosh/gau/tests/dependona\").\n\t\tShould().DirectlyDependOn(\"github.com/datosh/gau/tests/a\")\n}\n```\n\n## Credit\n\n* [Java ArchUnit](https://www.archunit.org/)\n* [matthewmcnew/archtest](https://github.com/matthewmcnew/archtest)\n    * not maintained, slow for bigger projects\n* [fdaines/arch-go](https://github.com/fdaines/arch-go)\n    * not unit test based: requires extra CLI tool\n\n## Ideas\n\n* Support checking of not using specific functions / classes of packages, e.g.,\n\"do not use fmt.Prinln\", but some logging library instead.\n\n## Open Problems\n\n* Is Method Chaining really the best way for golang? How do we communicate errors? Fail on last call? Return nil?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatosh%2Fgau","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatosh%2Fgau","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatosh%2Fgau/lists"}