Skip to content
Myr

[tests] Change tests to output to stdout only with verbose flag

Before adoption: this commit came in with the history the project adopted, so no landing records it.

This hides stdout output unless "go test -v" was run.

authored by Vlastimil Ovčáčík · committed by Junegunn Choi · parent 88d74a1 · Browse files · 1 file+1 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:src/ansi_test.go+1 added-2 removed
1package fzf23import (4 "fmt"4 "math/rand"5 "regexp"6 "strings"7 "testing"
197 unmodified lines
205 state = newState206 if output != "hello world" {207 t.Errorf("Invalid output: %s %v", output, []rune(output))208 }210 fmt.Println(src, ansiOffsets, clean)209 t.Log(src, ansiOffsets, clean)210 assertion(ansiOffsets, state)211 }212213 check(func(offsets *[]ansiOffset, state *ansiState) {
212 unmodified lines