{"id":17723845,"url":"https://github.com/honghaoz/chouti","last_synced_at":"2026-05-03T02:42:57.581Z","repository":{"id":240169326,"uuid":"729739695","full_name":"honghaoz/ChouTi","owner":"honghaoz","description":"ChouTi is a repository of Swift packages that provides frameworks, utilities and extensions to enhance development on iOS and macOS.","archived":false,"fork":false,"pushed_at":"2024-05-23T04:57:10.000Z","size":146,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-05-23T05:00:29.187Z","etag":null,"topics":["ios","macos","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/honghaoz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-12-10T07:38:03.000Z","updated_at":"2024-05-28T00:23:46.175Z","dependencies_parsed_at":"2024-05-28T00:23:45.307Z","dependency_job_id":"7b4423d5-3056-4d70-8cd8-79f17727f1ad","html_url":"https://github.com/honghaoz/ChouTi","commit_stats":null,"previous_names":["honghaoz/chouti"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honghaoz%2FChouTi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honghaoz%2FChouTi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honghaoz%2FChouTi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honghaoz%2FChouTi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/honghaoz","download_url":"https://codeload.github.com/honghaoz/ChouTi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246475938,"owners_count":20783758,"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":["ios","macos","swift"],"created_at":"2024-10-25T15:44:09.933Z","updated_at":"2026-05-03T02:42:57.576Z","avatar_url":"https://github.com/honghaoz.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChouTi\n\n[![build](https://github.com/honghaoz/ChouTi/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/honghaoz/ChouTi/actions/workflows/build.yml?query=branch%3Amaster)\n![swift](https://img.shields.io/badge/swift-5.9-F05138.svg)\n![platforms](https://img.shields.io/badge/platforms-macOS%2010.15%20%7C%20iOS%2013.0%20%7C%20tvOS%2013.0%20%7C%20visionOS%201.0%20%7C%20watchOS%207.0-007fea.svg)\n\n**ChouTi** is a repository of Swift packages that provides frameworks, utilities and extensions to enhance development on Apple platforms.\n\n## Installation\n\n### Swift Package Manager\n\nAdd the following to your `Package.swift` file:\n\n```swift\ndependencies: [\n  // add the package to your package dependencies\n  .package(url: \"https://github.com/honghaoz/ChouTi\", from: \"0.0.10\"),\n],\ntargets: [\n  // add products to your target dependencies\n  .target(\n    name: \"MyTarget\",\n    dependencies: [\n      .product(name: \"ChouTi\", package: \"ChouTi\"),\n    ]\n  ),\n  .testTarget(\n    name: \"MyTargetTests\",\n    dependencies: [\n      .product(name: \"ChouTiTest\", package: \"ChouTi\"),\n    ]\n  ),\n]\n```\n\n## Packages\n\n### ChouTi\n\n[![codecov](https://img.shields.io/codecov/c/github/honghaoz/ChouTi/master?token=BWWP0ROG2A\u0026flag=ChouTi\u0026style=flat\u0026label=code%20coverage\u0026color=59B31D)](https://codecov.io/github/honghaoz/ChouTi/tree/master/packages%2FChouTi%2FSources?flags%5B0%5D=ChouTi\u0026displayType=list)\n\n[**ChouTi**](packages/ChouTi) is a Swift framework that provides common utilities and extensions to enhance development on Apple platforms.\n\n```swift\nimport ChouTi\n\n...\n```\n\n### ChouTiTest\n\n[![codecov](https://img.shields.io/codecov/c/github/honghaoz/ChouTi/master?token=BWWP0ROG2A\u0026flag=ChouTiTest\u0026style=flat\u0026label=code%20coverage\u0026color=59B31D)](https://codecov.io/github/honghaoz/ChouTi/tree/master/packages%2FChouTiTest%2FSources?flags%5B0%5D=ChouTiTest\u0026displayType=list)\n\n[**ChouTiTest**](packages/ChouTiTest) is a Swift testing framework for writing tests with simple, expressive syntax.\n\n```swift\nimport ChouTiTest\n\nclass SomeTests: XCTestCase {\n\n  func testExample() throws {\n\n    // boolean\n    expect(expression).to(beTrue())\n    expect(expression) == true\n    expect(expression).to(beFalse())\n    expect(expression) == false\n    expect(expression).toNot(beTrue())\n    expect(expression) != true\n\n    // collection\n    expect(expression).to(beEmpty())\n    expect(expression).toNot(beEmpty())\n\n    // equal\n    expect(expression).to(beEqual(to: 2))\n    expect(expression) == 2\n    expect(expression).toNot(beEqual(to: 2))\n    expect(expression) != 2\n    expect(expression).to(beApproximatelyEqual(to: 2, within: 1e-6))\n    expect(expression).toNot(beApproximatelyEqual(to: 2, within: 1e-6))\n\n    // identical\n    expect(expression).to(beIdentical(to: object))\n    expect(expression) === object\n\n    // nil\n    expect(expression).to(beNil())\n    expect(expression) == nil\n    expect(expression).toNot(beNil())\n    expect(expression) != nil\n\n    // unwrap\n    try expect(unwrap(expression)) == expectedValue\n\n    // error\n    expect(try expression()).to(throwError(SomeError.error))\n    expect(try expression()).toNot(throwError(SomeError.error))\n\n    // error type\n    expect(try expression()).to(throwErrorOfType(SomeError.self))\n    expect(try expression()).toNot(throwErrorOfType(SomeError.self))\n\n    // any error\n    expect(try expression()).to(throwAnError())\n    expect(try expression()).toNot(throwAnError())\n\n    // eventually\n    expect(expression).toEventually(beTrue())\n    expect(expression).toEventually(beEmpty())\n    expect(expression).toEventually(beEqual(to: 2))\n    expect(expression).toEventually(beIdentical(to: object))\n    expect(expression).toEventually(beNil())\n    expect(try expression()).toEventually(throwError(SomeError.error))\n    expect(try expression()).toEventually(throwErrorOfType(SomeError.self))\n    expect(try expression()).toEventually(throwAnError())\n\n    expect(expression).toEventuallyNot(beTrue())\n    expect(expression).toEventuallyNot(beEmpty())\n    expect(expression).toEventuallyNot(beEqual(to: 2))\n    expect(expression).toEventuallyNot(beIdentical(to: object))\n    expect(expression).toEventuallyNot(beNil())\n    expect(try expression()).toEventuallyNot(throwError(SomeError.error))\n    expect(try expression()).toEventuallyNot(throwErrorOfType(SomeError.self))\n    expect(try expression()).toEventuallyNot(throwAnError())\n  }\n}\n```\n\n## License\n\nChouTi is available under the MIT license. See the [LICENSE](https://github.com/honghaoz/ChouTi/blob/master/LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhonghaoz%2Fchouti","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhonghaoz%2Fchouti","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhonghaoz%2Fchouti/lists"}