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" "testing"
) )
// Logger.
var logger = NewLogger(os.Stdout) var logger = NewLogger(os.Stdout)
func TestSetLevel(t *testing.T) { 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 { func stack() []byte {
buf := new(bytes.Buffer) // the returned data buf := new(bytes.Buffer) // the returned data
// As we loop, we open files and read them. These variables record the currently // As we loop, we open files and read them. These variables record the currently