{"id":24186366,"url":"https://github.com/kanocomputing/googletest-sample","last_synced_at":"2025-09-21T10:31:44.927Z","repository":{"id":73542577,"uuid":"131028889","full_name":"KanoComputing/googletest-sample","owner":"KanoComputing","description":"Example project for testing using Google Test and Google Mock","archived":false,"fork":false,"pushed_at":"2018-04-25T15:58:41.000Z","size":7,"stargazers_count":15,"open_issues_count":0,"forks_count":7,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-04T01:51:06.977Z","etag":null,"topics":[],"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/KanoComputing.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}},"created_at":"2018-04-25T15:42:31.000Z","updated_at":"2023-12-20T09:13:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"14621401-241e-4ff5-999e-42b7d3bde185","html_url":"https://github.com/KanoComputing/googletest-sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/KanoComputing/googletest-sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KanoComputing%2Fgoogletest-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KanoComputing%2Fgoogletest-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KanoComputing%2Fgoogletest-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KanoComputing%2Fgoogletest-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KanoComputing","download_url":"https://codeload.github.com/KanoComputing/googletest-sample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KanoComputing%2Fgoogletest-sample/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276229011,"owners_count":25606938,"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-09-21T02:00:07.055Z","response_time":72,"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":[],"created_at":"2025-01-13T12:35:15.920Z","updated_at":"2025-09-21T10:31:44.921Z","avatar_url":"https://github.com/KanoComputing.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sample google-test project\n\nThis is a sample project using the Google Test/Google Mock framework with\nsome examples of a few tests.\n\nThe framework is well documented at:\n * [Google Test](https://github.com/google/googletest/blob/master/googletest/docs/Documentation.md)\n * [Google Mock](https://github.com/google/googletest/blob/master/googlemock/docs/Documentation.md)\n\n## Requirements\n\nIn order to get things working, you will need:\n\n * C++ compiler (ideally C++11 compatible)\n * Make\n * CMake (\u003e 2.8.11)\n\n## Building\n\nCompile with:\n\n```\n\u003e cmake .\n\u003e make\n```\n\nRun main executable:\n\n```\n\u003e ./sample\n```\n\nRun tests:\n\n```\n./tests/tests\n```\n\nYou can build and run the tests all this with one line:\n\n```\n\u003e cmake . \u0026\u0026 make \u0026\u0026 ./tests/tests\n```\n\n## Structure\n\n```\n./\n├── CMakeLists.txt                // Main project CMake definition\n├── src/                          // Program to test\n│     ├── main.cpp                // Program entrance point\n│     ├── *.cpp                   // Class definitions\n│     ├── include/\n│     └──  *.hpp                  // Header files\n└── tests/  // Tests\n      ├── CMakeLists.txt          // CMake file for tests\n      ├── src/\n      │   ├── fixtures/\n      │   │   └── *.hpp           // Fixture definitions\n      │   ├── mocks/\n      │   │   └── *.hpp           // Mock definitions\n      │   ├── tests.cpp           // Test program definition\n      │   └── *.cpp               // Tests\n      └── vendor/                 // 3rd-party google-test framework\n```\n\n## How to modify\n\nTo add new source files, create the files in the `./src/` and `./src/include`\ndirectories and add an entry into the `./CMakeLists.txt` file for each new `.cpp` file.\n\n```\nadd_executable(\n\tsample\n    src/main.cpp\n    ...\n    src/my_new_file.cpp\n)\n```\n\nTo add new test files, create the files in the `./tests/src/` and\n`./tests/src/include` directories and add an entry into the\n`./tests/CMakeLists.txt` file for each new `.cpp` file.\n\n```\nadd_executable(\n\ttests\n\tsrc/tests.cpp\n    ...\n\tsrc/my_new_test.cpp\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanocomputing%2Fgoogletest-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkanocomputing%2Fgoogletest-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkanocomputing%2Fgoogletest-sample/lists"}