{"id":45345307,"url":"https://github.com/deeprave/go-testutils","last_synced_at":"2026-02-21T11:08:10.619Z","repository":{"id":65695890,"uuid":"597314529","full_name":"deeprave/go-testutils","owner":"deeprave","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-05T09:38:47.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-20T11:16:37.892Z","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/deeprave.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2023-02-04T06:30:07.000Z","updated_at":"2023-02-04T06:30:36.000Z","dependencies_parsed_at":"2024-06-20T10:23:57.801Z","dependency_job_id":"cfb66580-94fd-47f9-ac47-d2eea78d60b1","html_url":"https://github.com/deeprave/go-testutils","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/deeprave/go-testutils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deeprave%2Fgo-testutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deeprave%2Fgo-testutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deeprave%2Fgo-testutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deeprave%2Fgo-testutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deeprave","download_url":"https://codeload.github.com/deeprave/go-testutils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deeprave%2Fgo-testutils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29679148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T09:33:50.764Z","status":"ssl_error","status_checked_at":"2026-02-21T09:33:19.949Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-02-21T11:08:10.042Z","updated_at":"2026-02-21T11:08:10.598Z","avatar_url":"https://github.com/deeprave.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Test support functions for golang\n\n## Description\n\nThe `test` package contains a number of easily comprehensible utility functions that abbreviate\na lot of the boilerplate code associated with Go unit testing.\n\n`test.SetErrorsFatal(bool)` can be called to determine whether test failures are fatal (default = true).\n\n## Functions\n\nThe following functions resemble simple assertions that return a `bool` type indicate whether the tested \nvalue succeeds.\nThis allows for immediate exit from the test function on test failure.\n\n### Equality\n\n`ShouldBeEqual(*testing.T, interface{}, interface{}, ...options) bool`\n:  compares two values which are expected to be identical via deep comparison\n\n`ShouldNotBeEqual(*testing.T, interface{}, interface{}, ...options) bool`\n:  compares two values which are expected not to be identical via deep comparison\n\n### True/False\n\n`ShouldBeTrue(*testing T, bool, format, ...args) bool`\n:  tests if the result of an expression is true\n\n`ShouldBeFalse(*testing T, bool, format, ...args) bool`\n:  tests if the result of an expression is false\n\n### Nil\n\n`ShouldBeNil(*testing T, interface{}, format, ...args) bool`\n:  tests if a value is nil\n\n`ShouldNotBeNil(*testing T, interface{}, format, ...args) bool`\n:  tests if a value is not nil\n\n### In Array\n\n`ShouldBeInArray(*testing.T, []V, V, ...options) bool`\n:  tests if a value is in the provided array\n\n`ShouldNotBeInArray(*testing.T, []V, V, ...options) bool`\n:  tests if a value is not in the provided array\n\n### Error\n\n`ShouldBeError(*testing.T, error, format, ...args) bool`\n:  error is expected to be non-null\n\n`ShouldBeNoError(*testing.T, error, format, ...args) bool`\n:  error is expected to be null\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeeprave%2Fgo-testutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeeprave%2Fgo-testutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeeprave%2Fgo-testutils/lists"}