{"id":13413898,"url":"https://github.com/matryer/is","last_synced_at":"2025-05-14T00:06:37.740Z","repository":{"id":37286157,"uuid":"75733380","full_name":"matryer/is","owner":"matryer","description":"Professional lightweight testing mini-framework for Go.","archived":false,"fork":false,"pushed_at":"2024-02-08T21:33:15.000Z","size":395,"stargazers_count":1851,"open_issues_count":6,"forks_count":60,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-05-03T07:14:02.858Z","etag":null,"topics":["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/matryer.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":"matryer"}},"created_at":"2016-12-06T13:24:01.000Z","updated_at":"2025-04-28T11:23:33.000Z","dependencies_parsed_at":"2024-06-18T11:39:58.112Z","dependency_job_id":"cc8a6c24-3ce4-482e-b434-23a1c7a78567","html_url":"https://github.com/matryer/is","commit_stats":{"total_commits":68,"total_committers":22,"mean_commits":3.090909090909091,"dds":0.6323529411764706,"last_synced_commit":"6dc40677949589fa59427ed773dcefb50972a497"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matryer%2Fis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matryer%2Fis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matryer%2Fis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matryer%2Fis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matryer","download_url":"https://codeload.github.com/matryer/is/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254043540,"owners_count":22004969,"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":["golang","testing"],"created_at":"2024-07-30T20:01:52.280Z","updated_at":"2025-05-14T00:06:37.701Z","avatar_url":"https://github.com/matryer.png","language":"Go","readme":"# is [![GoDoc](https://godoc.org/github.com/matryer/is?status.png)](http://godoc.org/github.com/matryer/is) [![Go Report Card](https://goreportcard.com/badge/github.com/matryer/is)](https://goreportcard.com/report/github.com/matryer/is)\nProfessional lightweight testing mini-framework for Go.\n\n* Easy to write and read\n* [Beautifully simple API](https://pkg.go.dev/github.com/matryer/is) with everything you need: `is.Equal`, `is.True`, `is.NoErr`, and `is.Fail`\n* Use comments to add descriptions (which show up when tests fail)\n\nFailures are very easy to read:\n\n![Examples of failures](https://github.com/matryer/is/raw/master/misc/delicious-failures.png)\n\n### Usage\n\nThe following code shows a range of useful ways you can use\nthe helper methods:\n\n```go\nfunc Test(t *testing.T) {\n\tis := is.New(t)\n\tsignedin, err := isSignedIn(ctx)\n\tis.NoErr(err)            // isSignedIn error\n\tis.Equal(signedin, true) // must be signed in\n\tbody := readBody(r)\n\tis.True(strings.Contains(body, \"Hi there\"))\n}\n```\n\n## Color\n\nTo turn off the colors, run `go test` with the `-nocolor` flag,\nor with the env var [`NO_COLOR` (with any value)](https://no-color.org).\n\n```\ngo test -nocolor\n```\n\n```\nNO_COLOR=1 go test\n```\n","funding_links":["https://github.com/sponsors/matryer"],"categories":["开源类库","Testing","Open source library","Go","Testing Frameworks","测试","testing","Template Engines"],"sub_categories":["测试","Testing Frameworks","Test","HTTP Clients","HTTP客户端"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatryer%2Fis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatryer%2Fis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatryer%2Fis/lists"}