parser

package
v0.13.18 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2018 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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