{"id":26096309,"url":"https://github.com/echocat/gocheck-addons","last_synced_at":"2026-06-08T14:32:41.064Z","repository":{"id":57482304,"uuid":"75848915","full_name":"echocat/gocheck-addons","owner":"echocat","description":"Provides some addons functions for usage together with gocheck.","archived":false,"fork":false,"pushed_at":"2023-04-26T07:38:56.000Z","size":59,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-13T18:35:44.855Z","etag":null,"topics":["addons-functions","echocat","gocheck","gocheck-addons","golang","testing","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/echocat.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-07T15:26:08.000Z","updated_at":"2023-04-26T07:39:01.000Z","dependencies_parsed_at":"2024-06-21T07:11:13.764Z","dependency_job_id":"e4079be9-dd07-49df-b72f-b2dea7e6cb07","html_url":"https://github.com/echocat/gocheck-addons","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/echocat/gocheck-addons","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echocat%2Fgocheck-addons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echocat%2Fgocheck-addons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echocat%2Fgocheck-addons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echocat%2Fgocheck-addons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/echocat","download_url":"https://codeload.github.com/echocat/gocheck-addons/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echocat%2Fgocheck-addons/sbom","scorecard":{"id":365145,"data":{"date":"2025-08-11","repo":{"name":"github.com/echocat/gocheck-addons","commit":"acebbd8eb7efb3d94065b25e3d8d710777260585"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/7 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}}]},"last_synced_at":"2025-08-18T11:41:34.706Z","repository_id":57482304,"created_at":"2025-08-18T11:41:34.706Z","updated_at":"2025-08-18T11:41:34.706Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34067348,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["addons-functions","echocat","gocheck","gocheck-addons","golang","testing","unit-testing"],"created_at":"2025-03-09T14:44:58.557Z","updated_at":"2026-06-08T14:32:41.049Z","avatar_url":"https://github.com/echocat.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/echocat/gocheck-addons)](https://goreportcard.com/report/github.com/echocat/gocheck-addons)\n[![Circle CI](https://img.shields.io/circleci/project/echocat/gocheck-addons.svg?style=flat-square)](https://circleci.com/gh/echocat/gocheck-addons)\n[![Coverage Status](https://img.shields.io/coveralls/echocat/gocheck-addons/master.svg?style=flat-square)](https://coveralls.io/github/echocat/gocheck-addons?branch=master)\n[![License](https://img.shields.io/github/license/echocat/gocheck-addons.svg?style=flat-square)](LICENSE)\n\n# gocheck-addons\n\nProvides some addons functions for usage together with [gocheck](http://labix.org/gocheck).\n\n* [Installation](#installation)\n* [Checkers](#checkers)\n* [Run tests of this library](#run-tests-of-this-library)\n* [Contributing](#contributing)\n* [Support](#support)\n* [License](#license)\n\n## Installation\n\nInstall dependencies:\n```bash\ngo get -u github.com/echocat/gocheck-addons\n```\n\nImport in source code files:\n```go\nimport (\n\t. \"github.com/echocat/gocheck-addons\"\n\t. \"gopkg.in/check.v1\"\n)\n```\n\n## Checkers\n\n* [ThrowsPanicThatMatches](#throwspanicthatmatches)\n* [IsEmpty](#isempty)\n* [IsLessThan](#islessthan)\n* [IsLessThanOrEqual](#islessthanorequal)\n* [IsLargerThan](#islargerthan)\n* [IsLargerThanOrEqualTo](#islargerthanorequalto)\n\n### ThrowsPanicThatMatches\n\nCheck for a panic message that should occur.\n\nExample:\n```go\nc.Assert(func() {\n    panic(errors.New(\"foo123\"))\n}, ThrowsPanicThatMatches, \"foo1.3\")\nc.Assert(func() {\n    panic(enclosesString{string: \"foo123\"})\n}, ThrowsPanicThatMatches, \"foo1.3\")\nc.Assert(func() {\n    panic(\"foo123\")\n}, ThrowsPanicThatMatches, \"foo1.3\")\n```\n\n### IsEmpty\n\nCheck that a value is empty. Currently support strings, arrays and maps.\n\nExample:\n```go\nc.Assert(\"abc\", Not(IsEmpty))\nc.Assert(\"\", IsEmpty)\nc.Assert([]string{\"abc\"}, Not(IsEmpty))\nc.Assert([]string{}, IsEmpty)\nc.Assert([]int{1}, Not(IsEmpty))\nc.Assert([]int{}, IsEmpty)\nc.Assert(map[string]int{\"abc\": 1}, Not(IsEmpty))\nc.Assert(map[string]int{}, IsEmpty)\n```\n\n### Contains\n\nCheck that a specific value is contained in another. Currently support only strings.\n\nExample:\n```go\nc.Assert(\"abc\", Contains, \"a\")\nc.Assert(\"abc\", Contains, \"b\")\nc.Assert(\"abc\", Contains, \"c\")\nc.Assert(\"abc\", Contains, \"abc\")\nc.Assert(\"abc\", Contains, \"\")\nc.Assert(\"abc\", Not(Contains), \"x\")\n```\n\n### HasPrefix\n\nCheck that a specific value prefixes another. Currently support only strings.\n\nExample:\n```go\nc.Assert(\"abc\", HasPrefix, \"a\")\nc.Assert(\"abc\", HasPrefix, \"ab\")\nc.Assert(\"abc\", HasPrefix, \"abc\")\nc.Assert(\"abc\", HasPrefix, \"\")\nc.Assert(\"abc\", Not(HasPrefix), \"b\")\nc.Assert(\"abc\", Not(HasPrefix), \"c\")\n```\n\n### HasSuffix\n\nCheck that a specific value suffixes another. Currently support only strings.\n\nExample:\n```go\nc.Assert(\"abc\", HasSuffix, \"c\")\nc.Assert(\"abc\", HasSuffix, \"bc\")\nc.Assert(\"abc\", HasSuffix, \"abc\")\nc.Assert(\"abc\", HasSuffix, \"\")\nc.Assert(\"abc\", Not(HasSuffix), \"a\")\nc.Assert(\"abc\", Not(HasSuffix), \"b\")\n```\n\n### IsLessThan\n\nCheck that a value is less than to provided.\n\nExample:\n```go\nc.Assert(22, IsLessThan, 66)\nc.Assert(22, Not(IsLessThan), 11)\nc.Assert(22, Not(IsLessThan), 22)\nc.Assert(22.5, IsLessThan, 66.5)\nc.Assert(22.5, Not(IsLessThan), 11.5)\nc.Assert(22.5, Not(IsLessThan), 22.5)\nc.Assert(time.Duration(22), IsLessThan, time.Duration(66))\n```\n\n### IsLessThanOrEqual\n\nCheck that a value is less than or equal to provided.\n\nExample:\n```go\nc.Assert(22, IsLessThanOrEqualTo, 66)\nc.Assert(22, IsLessThanOrEqualTo, 22)\nc.Assert(22, Not(IsLessThanOrEqualTo), 11)\nc.Assert(22.5, IsLessThanOrEqualTo, 66.5)\nc.Assert(22.5, IsLessThanOrEqualTo, 22.5)\nc.Assert(22.5, Not(IsLessThanOrEqualTo), 11.5)\nc.Assert(time.Duration(22), IsLessThanOrEqualTo, time.Duration(66))\nc.Assert(time.Duration(22), IsLessThanOrEqualTo, time.Duration(22))\n```\n\n### IsLargerThan\n\nCheck that a value is larger than to provided.\n\nExample:\n```go\nc.Assert(22, IsLargerThan, 11)\nc.Assert(22, Not(IsLargerThan), 66)\nc.Assert(22, Not(IsLargerThan), 22)\nc.Assert(66.5, IsLargerThan, 22.5)\nc.Assert(11.5, Not(IsLargerThan), 22.5)\nc.Assert(22.5, Not(IsLargerThan), 22.5)\nc.Assert(time.Duration(22), IsLargerThan, time.Duration(11))\n```\n\n### IsLargerThanOrEqualTo\n\nCheck that a value is larger than or equal to provided.\n\nExample:\n```go\nc.Assert(22, IsLargerThanOrEqualTo, 11)\nc.Assert(22, Not(IsLargerThanOrEqualTo), 66)\nc.Assert(22, IsLargerThanOrEqualTo, 22)\nc.Assert(66.5, IsLargerThanOrEqualTo, 22.5)\nc.Assert(11.5, Not(IsLargerThanOrEqualTo), 22.5)\nc.Assert(22.5, IsLargerThanOrEqualTo, 22.5)\nc.Assert(time.Duration(22), IsLargerThanOrEqualTo, time.Duration(11))\nc.Assert(time.Duration(22), IsLargerThanOrEqualTo, time.Duration(22))\n```\n\n## Run tests of this library\n\nThis includes download of all dependencies and also creation and upload of coverage reports.\n\n\u003e No working golang installation is required but Java 8+ (in ``PATH`` or ``JAVA_HOME`` set.).\n\n```bash\n# On Linux/macOS\n$ ./gradlew test\n\n# On Windows\n$ gradlew test\n```\n\n## Contributing\n\ngocheck-addons is an open source project by [echocat](https://echocat.org).\nSo if you want to make this project even better, you can contribute to this project on [Github](https://github.com/echocat/gocheck-addons)\nby [fork us](https://github.com/echocat/gocheck-addons/fork).\n\nIf you commit code to this project, you have to accept that this code will be released under the [license](#license) of this project.\n\n## Support\n\nIf you need support you can create a ticket in our [issue tracker](https://github.com/echocat/gocheck-addons/issues).\n\n## License\n\nSee the [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fechocat%2Fgocheck-addons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fechocat%2Fgocheck-addons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fechocat%2Fgocheck-addons/lists"}