{"id":19386255,"url":"https://github.com/davidstutz/googlemock-example","last_synced_at":"2025-10-05T00:51:28.921Z","repository":{"id":148201082,"uuid":"66967215","full_name":"davidstutz/googlemock-example","owner":"davidstutz","description":"An example of using Google Mock inspired by Martin Fowler's \"Mocks Aren't Stubs\".","archived":false,"fork":false,"pushed_at":"2019-07-09T14:02:52.000Z","size":7,"stargazers_count":24,"open_issues_count":0,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-23T22:35:38.418Z","etag":null,"topics":["google-mock","google-test","software-engineering"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidstutz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-08-30T18:33:43.000Z","updated_at":"2023-12-31T00:13:01.000Z","dependencies_parsed_at":"2023-05-19T10:31:14.578Z","dependency_job_id":null,"html_url":"https://github.com/davidstutz/googlemock-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/davidstutz/googlemock-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidstutz%2Fgooglemock-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidstutz%2Fgooglemock-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidstutz%2Fgooglemock-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidstutz%2Fgooglemock-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidstutz","download_url":"https://codeload.github.com/davidstutz/googlemock-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidstutz%2Fgooglemock-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278395914,"owners_count":25979691,"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-04T02:00:05.491Z","response_time":63,"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":["google-mock","google-test","software-engineering"],"created_at":"2024-11-10T10:04:47.228Z","updated_at":"2025-10-05T00:51:28.916Z","avatar_url":"https://github.com/davidstutz.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Martin Fowler's \"Mocks Aren't Stubs\" Example in C++ with GMock\n\n[![Build Status](https://travis-ci.org/davidstutz/googlemock-example.svg?branch=master)](https://travis-ci.org/davidstutz/googlemock-example)\n\nThis repository contains the example discussed in Martin Fowler's [\"Mocks Aren't Stubs\"](http://martinfowler.com/articles/mocksArentStubs.html) implemented in C++ using [GMock](https://github.com/google/googletest).\n\n## Building\n\nMake sure to recursively clone, or use:\n\n    git submodule update --init --recursive\n\nThen, on Ubuntu, build using:\n\n    sudo apt-get install build-essential cmake\n    mkdir build\n    cd build\n    # Make sure to build GMock!\n    cmake .. -DBUILD_GMOCK=On\n    make\n\nAlso see `.travis.yml`.\n\n## License\n\nOriginal idea by Martin Fowler.\n\nCopyright (c) 2016 David Stutz All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n* Neither the name of David Stutz nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidstutz%2Fgooglemock-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidstutz%2Fgooglemock-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidstutz%2Fgooglemock-example/lists"}