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.
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.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C Header | 44 | 28619 | 15413 | 9554 | 3652 |
| C++ | 31 | 15110 | 10272 | 3272 | 1566 |
| CMake | 4 | 897 | 539 | 234 | 124 |
| Bazel | 9 | 719 | 413 | 237 | 69 |
| Shell | 2 | 283 | 189 | 73 | 21 |
| Batch | 1 | 89 | 66 | 10 | 13 |
| Autoconf | 6 | 73 | 53 | 9 | 11 |
| JSON | 1 | 8 | 8 | 0 | 0 |
| Markdown | 6 | 594 | 0 | 439 | 155 |
Top language: C Header 57.2%. Generated on .
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.
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.
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.
This OctoCounts report was generated from main at commit e882c3641019 on November 13, 2026.
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.