gtest

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package gtest implements Google Test framework support for C++ test files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefinition

func NewDefinition() *framework.Definition

Types

type GTestContentMatcher

type GTestContentMatcher struct{}

GTestContentMatcher matches Google Test-specific patterns in file content. It detects gtest includes, TEST/TEST_F/TEST_P macros, and ::testing::Test base classes.

func (*GTestContentMatcher) Match

type GTestFileMatcher

type GTestFileMatcher struct{}

GTestFileMatcher matches C++ test file naming conventions used by Google Test. It recognizes patterns like *_test.cc, *_unittest.cpp, *Test.cc, and files in test directories.

func (*GTestFileMatcher) Match

type GTestParser

type GTestParser struct{}

GTestParser extracts test definitions from C++ Google Test files.

func (*GTestParser) Parse

func (p *GTestParser) Parse(ctx context.Context, source []byte, filename string) (*domain.TestFile, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL