google/googletest

google/googletest has 26,953 source lines of code out of 46,392 total lines across 104 files, counted with tokei from the main ref at commit e882c3641019 on November 13, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

google/googletest: 26,953 code lines at commit e882c3641019, counted with tokei-15.0.0 on 2026-11-13. Saved result 9d13d18bc729a7e76033cf9f36484ecbd9cf66706fdfa5852ac5099167fc6909.

OctoCounts produced this report by resolving google/googletest to commit e882c3641019, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.

Repository size insights

This is a medium-sized codebase by counted code lines. Code represents 58.1% of all lines, comments represent 29.8%, and the repository averages 259 code lines per file. C Header accounts for 57.2% of counted code.

LanguageFilesLinesCodeCommentsBlanks
C Header44286191541395543652
C++31151101027232721566
CMake4897539234124
Bazel971941323769
Shell22831897321
Batch189661013
Autoconf67353911
JSON18800
Markdown65940439155

Top language: C Header 57.2%. Generated on .

Counting rules and retention

google/googletest: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does google/googletest have?

google/googletest has 26,953 lines of code, plus 13,828 comment lines and 5,611 blank lines, for 46,392 total lines at commit e882c3641019 on November 13, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

How was the google/googletest line count measured?

OctoCounts resolved the public GitHub repository to commit e882c3641019, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

What commit was counted for google/googletest?

This OctoCounts report was generated from main at commit e882c3641019 on November 13, 2026.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity:

Play the growth animation for google/googletest on this page — 26,953 code lines across 9 languages, counted by tokei.