{"id":15373108,"url":"https://github.com/otiai10/mint","last_synced_at":"2025-04-13T21:11:47.225Z","repository":{"id":17429797,"uuid":"20203055","full_name":"otiai10/mint","owner":"otiai10","description":"The very minimum assertion for Golang testing framework.","archived":false,"fork":false,"pushed_at":"2023-07-02T21:21:52.000Z","size":67,"stargazers_count":34,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-29T20:32:48.709Z","etag":null,"topics":["assertion","go","testing"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/otiai10/mint","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/otiai10.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["otiai10"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2014-05-27T01:20:22.000Z","updated_at":"2024-04-28T13:29:36.000Z","dependencies_parsed_at":"2024-06-18T16:45:26.635Z","dependency_job_id":"39f7a921-0bfe-43e2-b26c-612d2d6571bd","html_url":"https://github.com/otiai10/mint","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otiai10%2Fmint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otiai10%2Fmint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otiai10%2Fmint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otiai10%2Fmint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/otiai10","download_url":"https://codeload.github.com/otiai10/mint/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248404246,"owners_count":21097691,"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":["assertion","go","testing"],"created_at":"2024-10-01T13:54:17.987Z","updated_at":"2025-04-13T21:11:47.202Z","avatar_url":"https://github.com/otiai10.png","language":"Go","readme":"# mint\n\n[![Go](https://github.com/otiai10/mint/actions/workflows/go.yml/badge.svg)](https://github.com/otiai10/mint/actions/workflows/go.yml)\n[![codecov](https://codecov.io/gh/otiai10/mint/branch/master/graph/badge.svg)](https://codecov.io/gh/otiai10/mint)\n[![Go Report Card](https://goreportcard.com/badge/github.com/otiai10/mint)](https://goreportcard.com/report/github.com/otiai10/mint)\n[![GoDoc](https://godoc.org/github.com/otiai10/mint?status.png)](https://godoc.org/github.com/otiai10/mint)\n[![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/otiai10/mint?sort=semver)](https://pkg.go.dev/github.com/otiai10/mint)\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fotiai10%2Fmint.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fotiai10%2Fmint?ref=badge_shield)\n\nThe very minimum assertion for Go.\n\n```go\npackage your_test\n\nimport (\n    \"testing\"\n    \"pkg/your\"\n    . \"github.com/otiai10/mint\"\n)\n\nfunc TestFoo(t *testing.T) {\n\n    foo := your.Foo()\n    Expect(t, foo).ToBe(1234)\n    Expect(t, foo).TypeOf(\"int\")\n    Expect(t, foo).Not().ToBe(nil)\n    Expect(t, func() { yourFunc() }).Exit(1)\n\n    // If assertion failed, exit 1 with message.\n    Expect(t, foo).ToBe(\"foobarbuz\")\n\n    // You can run assertions without os.Exit\n    res := Expect(t, foo).Dry().ToBe(\"bar\")\n    // res.OK() == false\n\n    // You can omit repeated `t`.\n    m := mint.Blend(t)\n    m.Expect(foo).ToBe(1234)\n}\n```\n\n# features\n\n- Simple syntax\n- Loosely coupled\n- Plain implementation\n\n# tests\n```\ngo test ./...\n```\n\n# use cases\n\nProjects bellow use `mint`\n\n- [github.com/otiai10/gosseract](https://github.com/otiai10/gosseract/blob/master/all_test.go)\n- [github.com/otiai10/marmoset](https://github.com/otiai10/marmoset/blob/master/all_test.go#L168-L190)\n\n\n## License\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fotiai10%2Fmint.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fotiai10%2Fmint?ref=badge_large)","funding_links":["https://github.com/sponsors/otiai10"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotiai10%2Fmint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fotiai10%2Fmint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotiai10%2Fmint/lists"}