{"id":31927035,"url":"https://github.com/throwtheswitch/cmock","last_synced_at":"2025-10-14T01:56:37.975Z","repository":{"id":2316626,"uuid":"3276848","full_name":"ThrowTheSwitch/CMock","owner":"ThrowTheSwitch","description":"Mock/stub generator for C","archived":false,"fork":false,"pushed_at":"2025-07-09T21:02:48.000Z","size":3972,"stargazers_count":758,"open_issues_count":109,"forks_count":294,"subscribers_count":51,"default_branch":"master","last_synced_at":"2025-10-03T06:37:22.798Z","etag":null,"topics":["c","codegen","mocking","testing"],"latest_commit_sha":null,"homepage":"http://throwtheswitch.org","language":"C","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/ThrowTheSwitch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"docs/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":"docs/CODE_OF_CONDUCT.md","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,"zenodo":null},"funding":{"github":"ThrowTheSwitch"}},"created_at":"2012-01-26T19:51:32.000Z","updated_at":"2025-08-31T03:37:39.000Z","dependencies_parsed_at":"2023-11-14T04:28:47.823Z","dependency_job_id":"af914214-37dd-4fc0-a18a-45b31927a8de","html_url":"https://github.com/ThrowTheSwitch/CMock","commit_stats":{"total_commits":694,"total_committers":82,"mean_commits":8.463414634146341,"dds":0.7363112391930835,"last_synced_commit":"379a9a8d5dd5cdff8fd345710dd70ae26f966c71"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/ThrowTheSwitch/CMock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThrowTheSwitch%2FCMock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThrowTheSwitch%2FCMock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThrowTheSwitch%2FCMock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThrowTheSwitch%2FCMock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThrowTheSwitch","download_url":"https://codeload.github.com/ThrowTheSwitch/CMock/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThrowTheSwitch%2FCMock/sbom","scorecard":{"id":141289,"data":{"date":"2025-08-11","repo":{"name":"github.com/ThrowTheSwitch/CMock","commit":"94dcd39765859fb681d500307bbe1b5da4851df2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.3,"checks":[{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"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":"Code-Review","score":5,"reason":"Found 4/8 approved changesets -- score normalized to 5","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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"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":"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":10,"reason":"17 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/ThrowTheSwitch/CMock/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/ThrowTheSwitch/CMock/main.yml/master?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned"],"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":"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":"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: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 28 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-16T08:12:50.324Z","repository_id":2316626,"created_at":"2025-08-16T08:12:50.324Z","updated_at":"2025-08-16T08:12:50.324Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017468,"owners_count":26086090,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"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":["c","codegen","mocking","testing"],"created_at":"2025-10-14T01:56:09.435Z","updated_at":"2025-10-14T01:56:37.970Z","avatar_url":"https://github.com/ThrowTheSwitch.png","language":"C","funding_links":["https://github.com/sponsors/ThrowTheSwitch"],"categories":[],"sub_categories":[],"readme":"CMock ![CI](https://github.com/ThrowTheSwitch/CMock/workflows/CI/badge.svg)\n=====\n\nCMock is a mock and stub generator and runtime for unit testing C. It's been designed\nto work smoothly with Unity Test, another of the embedded-software testing tools \ndeveloped by ThrowTheSwitch.org. CMock automagically parses your C headers and creates\nuseful and usable mock interfaces for unit testing. Give it a try!\n\nIf you don't care to manage unit testing builds yourself, consider checking out Ceedling, \na test-centered build manager for unit testing C code.\n\n - [Known Issues](docs/CMockKnownIssues.md)\n - [Change Log](docs/CMockChangeLog.md)\n\nGetting Started\n===============\n\nYour first step is to get yourself a copy of CMock. There are a number of ways to do this:\n\n1. If you're using Ceedling, there is no need to install CMock. It will handle it for you.\n\n2. The simplest way is to grab it off github. The Github method looks something like this:\n\n    \u003e git clone --recursive https://github.com/throwtheswitch/cmock.git\n\n3. You can also grab the `zip` file from github. If you do this, you'll also need to grab yourself a\ncopy of Unity and CException, because github unfortunately doesn't bake dependencies into the zip\nfiles. \n\nContributing to this Project\n============================\n\nIf you plan to help with the development of CMock (or just want to verify that it can\nperform its self tests on your system) then you can grab its self-testing dependencies, \nthen run its self-tests:\n\n    \u003e cd cmock\n    \u003e bundle install   # Ensures you have all RubyGems needed\n    \u003e cd test\n    \u003e rake             # Run all CMock self tests\n\nBefore working on this project, you're going to want to read our guidelines on \n[contributing](docs/CONTRIBUTING.md). \n\nAPI Documentation\n=================\n\n* Not sure what you're doing?\n\t* [View docs/CMock_Summary.md](docs/CMock_Summary.md)\n* Interested in our MIT license?\n\t* [View docs/license.txt](LICENSE.txt)\n* Are there examples?\n\t* They are all in [/examples](examples/)\n* Any other resources to check out?\n\t* Definitely! Check out our developer portal on [ThrowTheSwitch.org](http://throwtheswitch.org)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthrowtheswitch%2Fcmock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthrowtheswitch%2Fcmock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthrowtheswitch%2Fcmock/lists"}