regressiontests

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: MIT Imports: 12 Imported by: 0 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.

README

Regression tests for gometalinter

These tests run specific linters through gometalinter and verify that they output what we expect from a particular piece of source code.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectIssues

func ExpectIssues(t *testing.T, linter string, source string, expected Issues, extraFlags ...string)

ExpectIssues runs gometalinter and expects it to generate exactly the issues provided.

Types

type Issue

type Issue struct {
	Linter   string `json:"linter"`
	Severity string `json:"severity"`
	Path     string `json:"path"`
	Line     int    `json:"line"`
	Col      int    `json:"col"`
	Message  string `json:"message"`
}

func (*Issue) String

func (i *Issue) String() string

type Issues

type Issues []Issue

func RunLinter

func RunLinter(t *testing.T, linter string, path string, extraFlags ...string) Issues

RunLinter runs the gometalinter as a binary against the files at path and returns the issues it encountered

Jump to

Keyboard shortcuts

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