File: errors_test.go

package info (click to toggle)
kubecolor 0.0.20-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 352 kB
  • sloc: makefile: 13
file content (10 lines) | stat: -rw-r--r-- 170 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
package command

import "testing"

func TestKubectlError(t *testing.T) {
	e := &KubectlError{1}
	if e.Error() != "kubectl error: 1" {
		t.Errorf("unexpected error")
	}
}