mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 13:50:54 +00:00
NewAnsiColorWriter remove
This commit is contained in:
parent
7693502aaa
commit
9cecb22170
@ -57,19 +57,3 @@ func TestFormatHeader_1(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestNewAnsiColor1(t *testing.T) {
|
|
||||||
inner := bytes.NewBufferString("")
|
|
||||||
w := NewAnsiColorWriter(inner)
|
|
||||||
if w == inner {
|
|
||||||
t.Errorf("Get %#v, want %#v", w, inner)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestNewAnsiColor2(t *testing.T) {
|
|
||||||
inner := bytes.NewBufferString("")
|
|
||||||
w1 := NewAnsiColorWriter(inner)
|
|
||||||
w2 := NewAnsiColorWriter(w1)
|
|
||||||
if w1 != w2 {
|
|
||||||
t.Errorf("Get %#v, want %#v", w1, w2)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user