Documentation ¶
Overview ¶
Package gtest contains helpers for running google-test tests from Go.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestCase ¶
type TestCase struct { // Suite is the suite for this test. Suite string // Name is the name of this individual test. Name string // contains filtered or unexported fields }
TestCase is a single gtest test case.
func ParseBenchmarks ¶
ParseBenchmarks returns each benchmark in a third_party/benchmark binary's list as a single test case.
func ParseTestCases ¶
ParseTestCases calls a gtest test binary to list its test and returns a slice with the name and suite of each test.
If benchmarks is true, then benchmarks will be included in the list of test cases provided. Note that this requires the binary to support the benchmarks_list_tests flag.
Click to show internal directories.
Click to hide internal directories.