parser

package
v0.18.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package logger/parser contains methods to parse and restructure log output from go testing and terratest

Package logger/parser contains methods to parse and restructure log output from go testing and terratest

Package logger/parser contains methods to parse and restructure log output from go testing and terratest

Index

Constants

This section is empty.

Variables

View Source
var NULL_TEST_RESULT_MARKER = TestResultMarker{}

A blank TestResultMarker is considered null. Used when peeking or popping an empty stack.

Functions

func SpawnParsers

func SpawnParsers(logger *logrus.Logger, reader io.Reader, outputDir string)

SpawnParsers will spawn the log parser and junit report parsers off of a single reader.

Types

type LogWriter

type LogWriter struct {
	// contains filtered or unexported fields
}

type TestResultMarker

type TestResultMarker struct {
	TestName    string
	IndentLevel int
}

TestResultMarker tracks the indentation level of a test result line in go test output. Example: --- FAIL: TestSnafu

--- PASS: TestSnafu/Situation
--- FAIL: TestSnafu/Normal

The three markers for the above in order are: TestResultMarker{TestName: "TestSnafu", IndentLevel: 0} TestResultMarker{TestName: "TestSnafu/Situation", IndentLevel: 4} TestResultMarker{TestName: "TestSnafu/Normal", IndentLevel: 4}

type TestResultMarkerStack

type TestResultMarkerStack []TestResultMarker

TestResultMarkerStack is a stack data structure to store TestResultMarkers

Jump to

Keyboard shortcuts

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