{"id":36605558,"url":"https://github.com/lovef/kotlin-assert-utils","last_synced_at":"2026-01-12T08:44:54.281Z","repository":{"id":57745380,"uuid":"101098087","full_name":"lovef/kotlin-assert-utils","owner":"lovef","description":"A set of assert utilities for JUnit testing with Kotlin","archived":false,"fork":false,"pushed_at":"2019-12-08T21:23:13.000Z","size":255,"stargazers_count":1,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-11-10T13:03:45.509Z","etag":null,"topics":["assertion-library","junit4","kotlin","testing","testing-tools","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lovef.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-22T19:06:34.000Z","updated_at":"2019-12-08T21:23:13.000Z","dependencies_parsed_at":"2022-08-30T23:40:10.946Z","dependency_job_id":null,"html_url":"https://github.com/lovef/kotlin-assert-utils","commit_stats":null,"previous_names":[],"tags_count":20,"template":null,"template_full_name":null,"purl":"pkg:github/lovef/kotlin-assert-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovef%2Fkotlin-assert-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovef%2Fkotlin-assert-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovef%2Fkotlin-assert-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovef%2Fkotlin-assert-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lovef","download_url":"https://codeload.github.com/lovef/kotlin-assert-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovef%2Fkotlin-assert-utils/sbom","scorecard":{"id":600026,"data":{"date":"2025-08-11","repo":{"name":"github.com/lovef/kotlin-assert-utils","commit":"1c94f3849e62796aa2c10ae5ae96f50007a3f251"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.9,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/24 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":"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":"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":"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":"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":"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":"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"}},{"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENCE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENCE:0"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T00:11:01.864Z","repository_id":57745380,"created_at":"2025-08-21T00:11:01.865Z","updated_at":"2025-08-21T00:11:01.865Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28337599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"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":["assertion-library","junit4","kotlin","testing","testing-tools","unit-testing"],"created_at":"2026-01-12T08:44:54.185Z","updated_at":"2026-01-12T08:44:54.263Z","avatar_url":"https://github.com/lovef.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/lovef/kotlin-assert-utils.svg?branch=master)](https://travis-ci.org/lovef/kotlin-assert-utils)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/se.lovef/kotlin-assert-utils/badge.svg)](https://maven-badges.herokuapp.com/maven-central/se.lovef/kotlin-assert-utils)\n[![Download](https://api.bintray.com/packages/lovef/maven/kotlin-assert-utils/images/download.svg)](https://bintray.com/lovef/maven/kotlin-assert-utils/_latestVersion)\n\n# Kotlin assert utils\n\nA set of assert utilities for JUnit testing with Kotlin\n\n## Example\n\n```kotlin\nimport org.junit.Test\nimport se.lovef.assert.v1.*\n\nclass ExampleTest {\n\n    @Test fun `example test`() {\n        1 shouldEqual 1\n        { 1 shouldEqual 2 } throws Error::class\n\n        1 shouldBeLessThan 2 shouldBeLessThan 3\n        1 shouldBeCloseTo 1.1 tolerance 0.2\n\n        \"my 1337 string\" shouldContain \"my\" shouldContain 1337 shouldContain \"string\"\n        \"my 1337 string\" shouldNotContain \"shit\"\n\n        null.shouldBeNull()\n        (\"123\" as String?).shouldNotBeNull().length shouldEqual 3\n\n        val exception = Exception()\n        ; { throw exception } throws exception\n        { { throw exception } throws Exception() } throws exception\n        { { } throws exception } throws NotThrownError::class\n\n        { \"1 is 2\" proof { 1 shouldEqual 2 } }\n            .throws(Error::class)\n            .message shouldEqual \"1 is 2\"\n\n        true.shouldBeTrue();\n        { null.shouldBeTrue() } throws Error::class\n\n        listOf(1, \"2\", null).shouldNotBeEmpty() shouldContain \"2\" shouldNotContain -1\n\n        { listOf(1, 2, 3) shouldEqual intArrayOf(1, 2, 3) }\n            .throws(Error::class)\n            .message shouldEqual \"\"\"|\n                |Expected: \u003cint[]\u003e [1, 2, 3]\n                |Got:      \u003cArrayList\u003e [1, 2, 3]\n                \"\"\".trimMargin();\n\n        { 1337 shouldEqual \"1337\" }\n            .throws(Error::class)\n            .message shouldEqual \"\"\"|\n                |Expected: \"1337\"\n                |Got:      1337\n            \"\"\".trimMargin()\n\n        listOf(1, 3, 5) shouldAll { it % 2 shouldEqual 1 }\n    }\n}\n```\n\n## Setup\n\n```gradle\nplugins {\n    id \"org.jetbrains.kotlin.jvm\" version \"1.3.61\"\n}\n\ndependencies {\n    implementation \"org.jetbrains.kotlin:kotlin-stdlib\"\n    testImplementation \"se.lovef:kotlin-assert-utils:0.10.1\"\n}\n\nrepositories {\n    mavenCentral()\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovef%2Fkotlin-assert-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flovef%2Fkotlin-assert-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovef%2Fkotlin-assert-utils/lists"}