google/googletest has 26,863 source lines of code out of 46,197 total lines across 100 files, counted from the main ref at commit b66cffcd5f5d by the OctoCounts tokei engine on 2026-10-14. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
As of 2026-10-14 (commit b66cffcd5f5d), google/googletest contains 46,197 total lines: 26,863 code, 13,738 comments, 5,596 blank, across 100 files in 8 languages (top: C Header 57.4%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving google/googletest to commit b66cffcd5f5d, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.
This is a medium-sized codebase by counted code lines. Code represents 58.1% of all lines, comments represent 29.7%, and the repository averages 269 code lines per file. C Header accounts for 57.4% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C Header | 44 | 28618 | 15412 | 9554 | 3652 |
| C++ | 31 | 15104 | 10266 | 3272 | 1566 |
| CMake | 4 | 897 | 539 | 234 | 124 |
| Bazel | 6 | 548 | 346 | 147 | 55 |
| Shell | 2 | 274 | 181 | 73 | 20 |
| Batch | 1 | 89 | 66 | 10 | 13 |
| Autoconf | 6 | 73 | 53 | 9 | 11 |
| Markdown | 6 | 594 | 0 | 439 | 155 |
Top language (C Header 57.4%). Generated at .
google/googletest has 46,197 total lines, including 26,863 code lines, 13,738 comment lines, and 5,596 blank lines.
OctoCounts resolved the public GitHub repository to commit b66cffcd5f5d, 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 b66cffcd5f5d on 2026-10-14T12:14:36.739361264+00:00.
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,863 code lines across 8 languages, counted by tokei.