AI Slop Code RIsk Monitor

google/googletest

GoogleTest - Google Testing and Mocking Framework

10.2 Moderate pattern signal View on GitHub

Maintenance and Governance Review

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.

10.2
Adjusted Signal
10.2
Raw Pattern Score
100%
Time Factor
2026-10-03
Last Push
39.6K
Stars
C++
Language
53.4K
Lines of Code
123
Files
528
Pattern Hits
2026-10-12
Scan Date
0.15
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 35.0/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 508 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.3/100 · LOW

Are imports declared and package/API names verified? 3 finding(s).

Agent Over-Engineering Ratio 8.1/100 · LOW

Are wrappers, guards, and repeated structures necessary? 22 finding(s).

PR Review Velocity Impact 44.0/100 · MEDIUM

Which changes need focused human review? 528 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 18MEDIUM 1LOW 509

Directory Score Breakdown

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.

Pattern Findings

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.

Over-Commented Block496 hits · 441 pts
SeverityFileLineSnippetContext
LOWci/macos-presubmit.sh1#!/bin/bashCOMMENT
LOWci/macos-presubmit.sh21# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOTCOMMENT
LOWci/linux-presubmit.sh1#!/bin/bashCOMMENT
LOWci/linux-presubmit.sh21# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOTCOMMENT
LOWgoogletest/CMakeLists.txt1########################################################################COMMENT
LOWgoogletest/CMakeLists.txt181#COMMENT
LOWgoogletest/test/gtest_xml_output_unittest.py1#!/usr/bin/env pythonCOMMENT
LOWgoogletest/test/googletest-param-test-test.h1// Copyright 2008, Google Inc.COMMENT
LOWgoogletest/test/googletest-param-test-test.h21// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHTCOMMENT
LOWgoogletest/test/googletest-output-test.py1#!/usr/bin/env pythonCOMMENT
LOW…etest/test/googletest-param-test-invalid-name1-test.py1#!/usr/bin/env pythonCOMMENT
LOWgoogletest/test/gtest_help_test.py1#!/usr/bin/env pythonCOMMENT
LOWgoogletest/test/gtest_help_test.py21# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOTCOMMENT
LOW…gletest/test/googletest-global-environment-unittest.py1# Copyright 2021 Google Inc. All Rights Reserved.COMMENT
LOWgoogletest/test/gtest_test_utils.py1# Copyright 2006, Google Inc.COMMENT
LOWgoogletest/test/gtest_json_test_utils.py1# Copyright 2018, Google Inc.COMMENT
LOW…etest/test/googletest-param-test-invalid-name2-test.py1#!/usr/bin/env pythonCOMMENT
LOWgoogletest/test/googletest-json-output-unittest.py1#!/usr/bin/env pythonCOMMENT
LOWgoogletest/test/googletest-break-on-failure-unittest.py1#!/usr/bin/env pythonCOMMENT
LOW…etest/test/googletest-fail-if-no-test-selected-test.py1#!/usr/bin/env python3 # pylint: disable=g-interpreter-mismatchCOMMENT
LOW…etest/test/googletest-fail-if-no-test-selected-test.py21# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOTCOMMENT
LOWgoogletest/test/googletest-setuptestsuite-test.py1#!/usr/bin/env pythonCOMMENT
LOWgoogletest/test/googletest-list-tests-unittest.py1#!/usr/bin/env pythonCOMMENT
LOWgoogletest/test/googletest-env-var-test.py1#!/usr/bin/env pythonCOMMENT
LOW…gletest/test/googletest-fail-if-no-test-linked-test.py1#!/usr/bin/env python3 # pylint: disable=g-interpreter-mismatchCOMMENT
LOW…gletest/test/googletest-fail-if-no-test-linked-test.py21# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOTCOMMENT
LOWgoogletest/test/gtest_xml_outfiles_test.py1#!/usr/bin/env pythonCOMMENT
LOWgoogletest/test/gtest-typed-test_test.h1// Copyright 2008 Google Inc.COMMENT
LOWgoogletest/test/gtest-typed-test_test.h21// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHTCOMMENT
LOWgoogletest/test/gtest_list_output_unittest.py1#!/usr/bin/env pythonCOMMENT
LOWgoogletest/test/gtest_xml_test_utils.py1# Copyright 2006, Google Inc.COMMENT
LOWgoogletest/test/production.h1// Copyright 2006, Google Inc.COMMENT
LOWgoogletest/test/production.h21// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHTCOMMENT
LOWgoogletest/test/googletest-color-test.py1#!/usr/bin/env pythonCOMMENT
LOWgoogletest/test/googletest-filter-unittest.py1#!/usr/bin/env pythonCOMMENT
LOWgoogletest/test/gtest_skip_check_output_test.py1#!/usr/bin/env pythonCOMMENT
LOWgoogletest/test/gtest_testbridge_test.py1#!/usr/bin/env pythonCOMMENT
LOWgoogletest/test/googletest-throw-on-failure-test.py1#!/usr/bin/env pythonCOMMENT
LOWgoogletest/test/googletest-shuffle-test.py1#!/usr/bin/env pythonCOMMENT
LOWgoogletest/test/googletest-shuffle-test.py21# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FORCOMMENT
LOWgoogletest/test/googletest-uninitialized-test.py1#!/usr/bin/env pythonCOMMENT
LOWgoogletest/test/googletest-catch-exceptions-test.py1#!/usr/bin/env pythonCOMMENT
LOWgoogletest/test/googletest-json-outfiles-test.py1#!/usr/bin/env pythonCOMMENT
LOW…etest/test/gtest_skip_environment_check_output_test.py1#!/usr/bin/env pythonCOMMENT
LOWgoogletest/test/googletest-failfast-unittest.py1#!/usr/bin/env pythonCOMMENT
LOWgoogletest/include/gtest/gtest-matchers.h1// Copyright 2007, Google Inc.COMMENT
LOWgoogletest/include/gtest/gtest-matchers.h21// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHTCOMMENT
LOWgoogletest/include/gtest/gtest-matchers.h41COMMENT
LOWgoogletest/include/gtest/gtest-matchers.h61COMMENT
LOWgoogletest/include/gtest/gtest-matchers.h141 // MatchAndExplain() method of the Pointee(...) matcher shouldCOMMENT
LOWgoogletest/include/gtest/gtest-matchers.h161 //COMMENT
LOWgoogletest/include/gtest/gtest-matchers.h601}COMMENT
LOWgoogletest/include/gtest/gtest-matchers.h921// Constructs a Matcher<T> from nullptr. The constructed matcher matches anyCOMMENT
LOWgoogletest/include/gtest/gtest-death-test.h1// Copyright 2005, Google Inc.COMMENT
LOWgoogletest/include/gtest/gtest-death-test.h21// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHTCOMMENT
LOWgoogletest/include/gtest/gtest-death-test.h41#define GOOGLETEST_INCLUDE_GTEST_GTEST_DEATH_TEST_H_COMMENT
LOWgoogletest/include/gtest/gtest-death-test.h61// tests. IMPORTANT: This is an internal utility. Using it may break theCOMMENT
LOWgoogletest/include/gtest/gtest-death-test.h81//COMMENT
LOWgoogletest/include/gtest/gtest-death-test.h101//COMMENT
LOWgoogletest/include/gtest/gtest-death-test.h121// /absolute/path/to/bar_test are fine, but foo_test is not). ThisCOMMENT
436 more matches not shown…
Cross-File Repetition10 hits · 50 pts
SeverityFileLineSnippetContext
HIGH…etest/test/googletest-param-test-invalid-name1-test.py0verifies that google test warns the user when not initialized properly.STRING
HIGH…etest/test/googletest-param-test-invalid-name2-test.py0verifies that google test warns the user when not initialized properly.STRING
HIGHgoogletest/test/googletest-uninitialized-test.py0verifies that google test warns the user when not initialized properly.STRING
HIGH…etest/test/googletest-param-test-invalid-name1-test.py0runs the given command and verifies its exit code and output.STRING
HIGH…etest/test/googletest-param-test-invalid-name2-test.py0runs the given command and verifies its exit code and output.STRING
HIGHgoogletest/test/googletest-uninitialized-test.py0runs the given command and verifies its exit code and output.STRING
HIGHgoogletest/test/googletest-env-var-test.py0sets the env variable to 'value'; unsets it when 'value' is none.STRING
HIGHgoogletest/test/googletest-color-test.py0sets the env variable to 'value'; unsets it when 'value' is none.STRING
HIGHgoogletest/test/googletest-filter-unittest.py0sets the env variable to 'value'; unsets it when 'value' is none.STRING
HIGHgoogletest/test/googletest-failfast-unittest.py0sets the env variable to 'value'; unsets it when 'value' is none.STRING
Empty Error Handlers7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHgoogletest/test/gtest_xml_outfiles_test.py99except os.error:CODE
HIGHgoogletest/test/gtest_xml_outfiles_test.py103except os.error:CODE
HIGHgoogletest/test/gtest_xml_outfiles_test.py107except os.error:CODE
HIGHgoogletest/test/googletest-filter-unittest.py48except ImportError:CODE
HIGHgoogletest/test/googletest-json-outfiles-test.py134except os.error:CODE
HIGHgoogletest/test/googletest-json-outfiles-test.py138except os.error:CODE
HIGHgoogletest/test/googletest-json-outfiles-test.py142except os.error:CODE
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippetContext
HIGHgoogletest/test/gtest_test_utils.py200Changes into a specified directory, if provided, and executes a command. Restores the old directory afterwards. STRING
Deep Nesting4 hits · 4 pts
SeverityFileLineSnippetContext
LOWgoogletest/test/gtest_json_test_utils.py35CODE
LOWgoogletest/test/gtest_json_test_utils.py46CODE
LOWgoogletest/test/gtest_xml_test_utils.py131CODE
LOWgoogletest/test/gtest_xml_test_utils.py186CODE
Hyper-Verbose Identifiers3 hits · 3 pts
SeverityFileLineSnippetContext
LOWgoogletest/test/gtest_help_test.py139 def test_prints_help_with_full_flag(self):CODE
LOWgoogletest/test/gtest_help_test.py168 def test_runs_tests_without_help_flag(self):CODE
LOWgoogletest/test/gtest_help_test.py179 def test_runs_tests_with_gtest_internal_flag(self):CODE
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippetContext
MEDIUMgoogletest/include/gtest/gtest-death-test.h180// In practice, this can be used to test functions that utilize theCOMMENT
AI Structural Patterns2 hits · 2 pts
SeverityFileLineSnippetContext
LOWgoogletest/test/googletest-output-test.py215CODE
LOWgooglemock/test/gmock_output_test.py72CODE
Unused Imports2 hits · 2 pts
SeverityFileLineSnippetContext
LOWgoogletest/test/gtest_xml_outfiles_test.py35CODE
LOWgoogletest/test/gtest_xml_test_utils.py33CODE
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWgoogletest/test/googletest-filter-unittest.py69# Check if this platform can unset environment variables in child processes.COMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdocs/reference/mocking.md278 .WillRepeatedly(Return("John Doe")); // Return "John Doe" on all callsCODE