test coverage

This commit is contained in:
Liang Ding 2014-12-21 12:07:33 +08:00
parent 261f20abef
commit 7b40eab657
2 changed files with 2 additions and 1 deletions

View File

@ -19,6 +19,7 @@ import (
"testing"
)
// Logger.
var logger = NewLogger(os.Stdout)
func TestSetLevel(t *testing.T) {

View File

@ -42,7 +42,7 @@ func Recover() {
}
}
// stack implements Stack, skipping 2 frames
// stack implements Stack, skipping 2 frames.
func stack() []byte {
buf := new(bytes.Buffer) // the returned data
// As we loop, we open files and read them. These variables record the currently