GoogleTest - Google Testing and Mocking Framework
This report summarizes scanner evidence for google/googletest, a C++ project with 39,630 GitHub stars. SynthScan examined 53,438 lines of code across 123 source files, recording 528 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 10.2 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 508 finding(s).
Are imports declared and package/API names verified? 3 finding(s).
Are wrappers, guards, and repeated structures necessary? 22 finding(s).
Which changes need focused human review? 528 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 528 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | ci/macos-presubmit.sh | 1 | #!/bin/bash | COMMENT |
| LOW | ci/macos-presubmit.sh | 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | COMMENT |
| LOW | ci/linux-presubmit.sh | 1 | #!/bin/bash | COMMENT |
| LOW | ci/linux-presubmit.sh | 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | COMMENT |
| LOW | googletest/CMakeLists.txt | 1 | ######################################################################## | COMMENT |
| LOW | googletest/CMakeLists.txt | 181 | # | COMMENT |
| LOW | googletest/test/gtest_xml_output_unittest.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | googletest/test/googletest-param-test-test.h | 1 | // Copyright 2008, Google Inc. | COMMENT |
| LOW | googletest/test/googletest-param-test-test.h | 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | COMMENT |
| LOW | googletest/test/googletest-output-test.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | …etest/test/googletest-param-test-invalid-name1-test.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | googletest/test/gtest_help_test.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | googletest/test/gtest_help_test.py | 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | COMMENT |
| LOW | …gletest/test/googletest-global-environment-unittest.py | 1 | # Copyright 2021 Google Inc. All Rights Reserved. | COMMENT |
| LOW | googletest/test/gtest_test_utils.py | 1 | # Copyright 2006, Google Inc. | COMMENT |
| LOW | googletest/test/gtest_json_test_utils.py | 1 | # Copyright 2018, Google Inc. | COMMENT |
| LOW | …etest/test/googletest-param-test-invalid-name2-test.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | googletest/test/googletest-json-output-unittest.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | googletest/test/googletest-break-on-failure-unittest.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | …etest/test/googletest-fail-if-no-test-selected-test.py | 1 | #!/usr/bin/env python3 # pylint: disable=g-interpreter-mismatch | COMMENT |
| LOW | …etest/test/googletest-fail-if-no-test-selected-test.py | 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | COMMENT |
| LOW | googletest/test/googletest-setuptestsuite-test.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | googletest/test/googletest-list-tests-unittest.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | googletest/test/googletest-env-var-test.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | …gletest/test/googletest-fail-if-no-test-linked-test.py | 1 | #!/usr/bin/env python3 # pylint: disable=g-interpreter-mismatch | COMMENT |
| LOW | …gletest/test/googletest-fail-if-no-test-linked-test.py | 21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | COMMENT |
| LOW | googletest/test/gtest_xml_outfiles_test.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | googletest/test/gtest-typed-test_test.h | 1 | // Copyright 2008 Google Inc. | COMMENT |
| LOW | googletest/test/gtest-typed-test_test.h | 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | COMMENT |
| LOW | googletest/test/gtest_list_output_unittest.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | googletest/test/gtest_xml_test_utils.py | 1 | # Copyright 2006, Google Inc. | COMMENT |
| LOW | googletest/test/production.h | 1 | // Copyright 2006, Google Inc. | COMMENT |
| LOW | googletest/test/production.h | 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | COMMENT |
| LOW | googletest/test/googletest-color-test.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | googletest/test/googletest-filter-unittest.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | googletest/test/gtest_skip_check_output_test.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | googletest/test/gtest_testbridge_test.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | googletest/test/googletest-throw-on-failure-test.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | googletest/test/googletest-shuffle-test.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | googletest/test/googletest-shuffle-test.py | 21 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | COMMENT |
| LOW | googletest/test/googletest-uninitialized-test.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | googletest/test/googletest-catch-exceptions-test.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | googletest/test/googletest-json-outfiles-test.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | …etest/test/gtest_skip_environment_check_output_test.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | googletest/test/googletest-failfast-unittest.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | googletest/include/gtest/gtest-matchers.h | 1 | // Copyright 2007, Google Inc. | COMMENT |
| LOW | googletest/include/gtest/gtest-matchers.h | 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | COMMENT |
| LOW | googletest/include/gtest/gtest-matchers.h | 41 | COMMENT | |
| LOW | googletest/include/gtest/gtest-matchers.h | 61 | COMMENT | |
| LOW | googletest/include/gtest/gtest-matchers.h | 141 | // MatchAndExplain() method of the Pointee(...) matcher should | COMMENT |
| LOW | googletest/include/gtest/gtest-matchers.h | 161 | // | COMMENT |
| LOW | googletest/include/gtest/gtest-matchers.h | 601 | } | COMMENT |
| LOW | googletest/include/gtest/gtest-matchers.h | 921 | // Constructs a Matcher<T> from nullptr. The constructed matcher matches any | COMMENT |
| LOW | googletest/include/gtest/gtest-death-test.h | 1 | // Copyright 2005, Google Inc. | COMMENT |
| LOW | googletest/include/gtest/gtest-death-test.h | 21 | // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | COMMENT |
| LOW | googletest/include/gtest/gtest-death-test.h | 41 | #define GOOGLETEST_INCLUDE_GTEST_GTEST_DEATH_TEST_H_ | COMMENT |
| LOW | googletest/include/gtest/gtest-death-test.h | 61 | // tests. IMPORTANT: This is an internal utility. Using it may break the | COMMENT |
| LOW | googletest/include/gtest/gtest-death-test.h | 81 | // | COMMENT |
| LOW | googletest/include/gtest/gtest-death-test.h | 101 | // | COMMENT |
| LOW | googletest/include/gtest/gtest-death-test.h | 121 | // /absolute/path/to/bar_test are fine, but foo_test is not). This | COMMENT |
| 436 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …etest/test/googletest-param-test-invalid-name1-test.py | 0 | verifies that google test warns the user when not initialized properly. | STRING |
| HIGH | …etest/test/googletest-param-test-invalid-name2-test.py | 0 | verifies that google test warns the user when not initialized properly. | STRING |
| HIGH | googletest/test/googletest-uninitialized-test.py | 0 | verifies that google test warns the user when not initialized properly. | STRING |
| HIGH | …etest/test/googletest-param-test-invalid-name1-test.py | 0 | runs the given command and verifies its exit code and output. | STRING |
| HIGH | …etest/test/googletest-param-test-invalid-name2-test.py | 0 | runs the given command and verifies its exit code and output. | STRING |
| HIGH | googletest/test/googletest-uninitialized-test.py | 0 | runs the given command and verifies its exit code and output. | STRING |
| HIGH | googletest/test/googletest-env-var-test.py | 0 | sets the env variable to 'value'; unsets it when 'value' is none. | STRING |
| HIGH | googletest/test/googletest-color-test.py | 0 | sets the env variable to 'value'; unsets it when 'value' is none. | STRING |
| HIGH | googletest/test/googletest-filter-unittest.py | 0 | sets the env variable to 'value'; unsets it when 'value' is none. | STRING |
| HIGH | googletest/test/googletest-failfast-unittest.py | 0 | sets the env variable to 'value'; unsets it when 'value' is none. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | googletest/test/gtest_xml_outfiles_test.py | 99 | except os.error: | CODE |
| HIGH | googletest/test/gtest_xml_outfiles_test.py | 103 | except os.error: | CODE |
| HIGH | googletest/test/gtest_xml_outfiles_test.py | 107 | except os.error: | CODE |
| HIGH | googletest/test/googletest-filter-unittest.py | 48 | except ImportError: | CODE |
| HIGH | googletest/test/googletest-json-outfiles-test.py | 134 | except os.error: | CODE |
| HIGH | googletest/test/googletest-json-outfiles-test.py | 138 | except os.error: | CODE |
| HIGH | googletest/test/googletest-json-outfiles-test.py | 142 | except os.error: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | googletest/test/gtest_test_utils.py | 200 | Changes into a specified directory, if provided, and executes a command. Restores the old directory afterwards. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | googletest/test/gtest_json_test_utils.py | 35 | CODE | |
| LOW | googletest/test/gtest_json_test_utils.py | 46 | CODE | |
| LOW | googletest/test/gtest_xml_test_utils.py | 131 | CODE | |
| LOW | googletest/test/gtest_xml_test_utils.py | 186 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | googletest/test/gtest_help_test.py | 139 | def test_prints_help_with_full_flag(self): | CODE |
| LOW | googletest/test/gtest_help_test.py | 168 | def test_runs_tests_without_help_flag(self): | CODE |
| LOW | googletest/test/gtest_help_test.py | 179 | def test_runs_tests_with_gtest_internal_flag(self): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | googletest/include/gtest/gtest-death-test.h | 180 | // In practice, this can be used to test functions that utilize the | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | googletest/test/googletest-output-test.py | 215 | CODE | |
| LOW | googlemock/test/gmock_output_test.py | 72 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | googletest/test/gtest_xml_outfiles_test.py | 35 | CODE | |
| LOW | googletest/test/gtest_xml_test_utils.py | 33 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | googletest/test/googletest-filter-unittest.py | 69 | # Check if this platform can unset environment variables in child processes. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/reference/mocking.md | 278 | .WillRepeatedly(Return("John Doe")); // Return "John Doe" on all calls | CODE |