{"id":21659701,"url":"https://github.com/CodeSandwich/Mocktopus","last_synced_at":"2025-07-17T22:32:50.454Z","repository":{"id":53176347,"uuid":"92990661","full_name":"CodeSandwich/Mocktopus","owner":"CodeSandwich","description":"Mocking framework for Rust","archived":false,"fork":false,"pushed_at":"2024-04-17T10:04:04.000Z","size":431,"stargazers_count":233,"open_issues_count":17,"forks_count":20,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-11-17T10:56:48.963Z","etag":null,"topics":["mock","mocking","mocktopus","rust","rust-library","test","testing","testing-tools","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/CodeSandwich.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":"2017-05-31T21:34:22.000Z","updated_at":"2024-09-20T03:18:32.000Z","dependencies_parsed_at":"2024-06-19T05:29:36.300Z","dependency_job_id":"1c1a3bed-0fbb-4b57-a544-51ee88f81580","html_url":"https://github.com/CodeSandwich/Mocktopus","commit_stats":{"total_commits":191,"total_committers":11,"mean_commits":"17.363636363636363","dds":0.2670157068062827,"last_synced_commit":"aec15b3c03d81c143503b9e72b6a5b03a009e2e2"},"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeSandwich%2FMocktopus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeSandwich%2FMocktopus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeSandwich%2FMocktopus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeSandwich%2FMocktopus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeSandwich","download_url":"https://codeload.github.com/CodeSandwich/Mocktopus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226305722,"owners_count":17603863,"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":["mock","mocking","mocktopus","rust","rust-library","test","testing","testing-tools","unit-testing"],"created_at":"2024-11-25T09:31:24.136Z","updated_at":"2024-11-25T09:33:22.424Z","avatar_url":"https://github.com/CodeSandwich.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"[![Crates.io](https://img.shields.io/crates/d/mocktopus.svg)](https://crates.io/crates/mocktopus)\n[![Docs.rs](https://docs.rs/mocktopus/badge.svg)](https://docs.rs/crate/mocktopus)\n[![Build Status](https://travis-ci.org/CodeSandwich/Mocktopus.svg?branch=master)](https://travis-ci.org/CodeSandwich/Mocktopus)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/CodeSandwich/mocktopus/master/logo.png\" alt=\"logo\"/\u003e\n\u003c/p\u003e\n\nMocking framework for Rust (currently only nightly). See [documentation](https://docs.rs/mocktopus/) for more.\n\n```rust\n#[mockable]\nmod hello_world {\n    pub fn world() -\u003e \u0026'static str {\n        \"world\"\n    }\n\n    pub fn hello_world() -\u003e String {\n        format!(\"Hello {}!\", world())\n    }\n}\n\n#[test]\nfn mock_test() {\n    hello_world::world.mock_safe(|| MockResult::Return(\"mocking\"));\n\n    assert_eq!(\"Hello mocking!\", hello_world::hello_world());\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCodeSandwich%2FMocktopus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCodeSandwich%2FMocktopus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCodeSandwich%2FMocktopus/lists"}