integration

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

package integration provides common tools for all integration test executors

Index

Constants

View Source
const Cpp11 = cCppStandard("C++11")
View Source
const Cpp14 = cCppStandard("C++14")
View Source
const Cpp17 = cCppStandard("C++17")
View Source
const CppDefault = Cpp14

Variables

This section is empty.

Functions

This section is empty.

Types

type CCppTestConf

type CCppTestConf struct {
	Cmake     *cmake.Cmake
	Generator *cgenerator.CGenerator
}

func (*CCppTestConf) Build

func (conf *CCppTestConf) Build(t *testing.T)

Build compiles the test sources producing an executable

func (*CCppTestConf) Cleanup

func (conf *CCppTestConf) Cleanup()

func (*CCppTestConf) CommonExecute

func (conf *CCppTestConf) CommonExecute(t *testing.T, lang cCppStandard)

CommonExecute executes the integration with the simple/common setup

func (*CCppTestConf) CreateCMake

func (conf *CCppTestConf) CreateCMake(t *testing.T, lang cCppStandard, mainFile string)

CreateCMake creates temporary directories and configures the CMake project

func (*CCppTestConf) Generate

func (conf *CCppTestConf) Generate(t *testing.T, schemas map[string]string)

Generate loads *.fbs files in the current dir (or the given schema file) and generates the code

func (*CCppTestConf) Run

func (conf *CCppTestConf) Run(t *testing.T, envVars []string)

Run executes the built test binary

Jump to

Keyboard shortcuts

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