{"id":13836928,"url":"https://github.com/tylerstillwater/is","last_synced_at":"2025-07-10T16:31:19.279Z","repository":{"id":29501805,"uuid":"33039764","full_name":"tylerstillwater/is","owner":"tylerstillwater","description":"Is provides a quick, clean and simple framework for writing Go tests.","archived":true,"fork":false,"pushed_at":"2020-04-26T22:39:11.000Z","size":51,"stargazers_count":26,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"v3","last_synced_at":"2024-10-29T14:18:37.799Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/tylerstillwater.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":"2015-03-28T16:04:13.000Z","updated_at":"2024-10-16T15:58:03.000Z","dependencies_parsed_at":"2022-08-31T23:52:10.408Z","dependency_job_id":null,"html_url":"https://github.com/tylerstillwater/is","commit_stats":null,"previous_names":["tylerb/is"],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tylerstillwater%2Fis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tylerstillwater%2Fis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tylerstillwater%2Fis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tylerstillwater%2Fis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tylerstillwater","download_url":"https://codeload.github.com/tylerstillwater/is/tar.gz/refs/heads/v3","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225647983,"owners_count":17502161,"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":[],"created_at":"2024-08-04T15:00:57.433Z","updated_at":"2024-11-20T23:32:00.442Z","avatar_url":"https://github.com/tylerstillwater.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# is [![GoDev](https://img.shields.io/static/v1?label=godev\u0026message=documentation\u0026color=informational\u0026style=plastic\u0026\u0026url=https://pkg.go.dev/github.com/tylerb/is@v3.0.0?tab=doc)](https://pkg.go.dev/github.com/tylerb/is/v3@v3.0.0?tab=doc) [![Build Status](https://circleci.com/gh/tylerb/is/tree/v3.svg?style=shield\u0026circle-token=94428439ffc6eda6471dc218471dab20985f444c)](https://circleci.com/gh/tylerb/is/tree/v3)\n\n## Archived\n\n`is` has been archived in favor of [Proof](https://github.com/tystil/proof)\n\n-----------\n\nIs provides a quick, clean and simple framework for writing Go tests.\n\n## Installation\n\nTo install, simply execute:\n\n```\ngo get -u github.com/tylerb/is/v3\n```\n\n## Usage\n\n```go\nfunc TestSomething(t *testing.T) {\n\tassert := is.New(t)\n\n\texpected := 10\n\tactual, _ := awesomeFunction()\n\tassert.Equal(actual, expected)\n}\n```\n\nIf you'd like a bit more information when a test fails, you may use the `Msg()` method:\n\n```go\nfunc TestSomething(t *testing.T) {\n\tassert := is.New(t)\n\n\texpected := 10\n\tactual, details := awesomeFunction()\n\tassert.Msg(\"actual details: %s\", details).Equal(actual, expected)\n}\n```\n\nBy default, any assertion that fails will halt termination of the test. If you would like to run a group of assertions\nin a row, you may use the `Lax` method. This is useful for asserting/printing many values at once, so you can correct\nall the issues between test runs.\n\n```go\nfunc TestSomething(t *testing.T) {\n\tassert := is.New(t)\n\n\tassert.Lax(func (lax Asserter) {\n\t\tlax.Equal(1, 2)\n\t\tlax.True(false)\n\t\tlax.ShouldPanic(func(){})\n\t}) \n}\n```\n\nIf any of the assertions fail inside that function, an additional error will be printed and test execution will halt.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftylerstillwater%2Fis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftylerstillwater%2Fis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftylerstillwater%2Fis/lists"}