| 1 |
// Copyright (c) 2021, Maxime Soulé |
| 2 |
// All rights reserved. |
| 3 |
// |
| 4 |
// This source code is licensed under the BSD-style license found in the |
| 5 |
// LICENSE file in the root directory of this source tree. |
| 6 |
|
| 7 |
// Package nocolor is only intended to easily disable coloring output |
| 8 |
// of failure reports, typically useful in golang playground. |
| 9 |
// |
| 10 |
// Simply import it, and nothing else: |
| 11 |
// |
| 12 |
// import _ "github.com/maxatome/go-testdeep/helpers/nocolor" |
| 13 |
package nocolor |
| 14 |
|
| 15 |
import "os" |
| 16 |
|
| 17 |
func init() { |
| 18 |
os.Setenv("TESTDEEP_COLOR", "off") //nolint: errcheck |
| 19 |
} |