# google/googletest SLOC report

> As of 2026-08-27 (commit 36ba75f0ad53), google/googletest contains 46,571 total lines: 27,072 code, 13,871 comments, 5,628 blank, across 100 files in 8 languages (top: C Header 57.1%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving google/googletest to commit 36ba75f0ad53, 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.8%, and the repository averages 271 code lines per file. C Header accounts for 57.1% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C Header | 44 | 28,733 | 15,455 | 9,621 | 3,657 |
| C++ | 31 | 15,327 | 10,409 | 3,325 | 1,593 |
| CMake | 4 | 933 | 562 | 247 | 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.1%). Generated at 2026-08-27T12:46:01.884498912+00:00. Canonical report: https://octocounts.com/github/google/googletest

## Report FAQ

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

google/googletest has 46,571 total lines, including 27,072 code lines, 13,871 comment lines, and 5,628 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 36ba75f0ad53, 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 36ba75f0ad53 on 2026-08-27T12:46:01.884498912+00:00.

## Similar repository reports

- [timoti111/vkEasy](https://octocounts.com/github/timoti111/vkEasy) — C Header, 27,694 code lines
- [Kahviz/BoronGameEngine](https://octocounts.com/github/Kahviz/BoronGameEngine) — C Header, 26,195 code lines
- [mangowm/mango](https://octocounts.com/github/mangowm/mango) — C Header, 28,054 code lines
- [libretro/QuickNES_Core](https://octocounts.com/github/libretro/QuickNES_Core) — C Header, 28,301 code lines
- [ctfhubio/GNU-time](https://octocounts.com/github/ctfhubio/GNU-time) — C Header, 29,523 code lines
- [charles-lunarg/vk-bootstrap](https://octocounts.com/github/charles-lunarg/vk-bootstrap) — C Header, 23,708 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)
- [OctoCounts API docs](https://octocounts.com/docs/api)
