File: nocolor_test.go

package info (click to toggle)
golang-github-maxatome-go-testdeep 1.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,416 kB
  • sloc: perl: 1,012; yacc: 130; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 472 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) 2021, Maxime Soulé
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.

package nocolor_test

import (
	"os"
	"testing"

	_ "github.com/maxatome/go-testdeep/helpers/nocolor"
)

func TestNocolor(t *testing.T) {
	tdColor := os.Getenv("TESTDEEP_COLOR")
	if tdColor != "off" {
		t.Errorf(`TESTDEEP_COLOR expected to be "off" but is %q`, tdColor)
	}
}