# google/googletest SLOC report

> google/googletest: 26,863 code lines at commit b66cffcd5f5d, counted with tokei-14.0.0 on 2026-10-14. Saved result a897ec213b324b10a1e9cca162269b6966d2dab3e3302382b555ab5da14003d0.

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.

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.

## Repository size insights

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 | 28,618 | 15,412 | 9,554 | 3,652 |
| C++ | 31 | 15,104 | 10,266 | 3,272 | 1,566 |
| 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 2026-10-14T12:14:36.739361264Z. Canonical report: https://octocounts.com/github/google/googletest/commit/b66cffcd5f5d6ee34a4f96d57bf016d9a22cb023?reportId=a897ec213b324b10a1e9cca162269b6966d2dab3e3302382b555ab5da14003d0&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/google/googletest/commit/b66cffcd5f5d6ee34a4f96d57bf016d9a22cb023?reportId=a897ec213b324b10a1e9cca162269b6966d2dab3e3302382b555ab5da14003d0&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does google/googletest have?

google/googletest has 46,197 total lines, including 26,863 code lines, 13,738 comment lines, and 5,596 blank lines.

### How was the google/googletest line count measured?

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.

### What commit was counted for google/googletest?

This OctoCounts report was generated from main at commit b66cffcd5f5d on 2026-10-14T12:14:36.739361264Z.

## Similar repository reports

- [davmac314/dinit](https://octocounts.com/github/davmac314/dinit) — C Header, 26,446 code lines
- [charles-lunarg/vk-bootstrap](https://octocounts.com/github/charles-lunarg/vk-bootstrap) — C Header, 24,692 code lines
- [pybind/pybind11](https://octocounts.com/github/pybind/pybind11) — C Header, 23,005 code lines
- [gabime/spdlog](https://octocounts.com/github/gabime/spdlog) — C Header, 22,755 code lines
- [phoenixthrush/Tiny-C-Compiler](https://octocounts.com/github/phoenixthrush/Tiny-C-Compiler) — C Header, 32,100 code lines
- [rbock/sqlpp11](https://octocounts.com/github/rbock/sqlpp11) — C Header, 21,532 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
