2015-04-08 03:58:35 +03:00
|
|
|
// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
|
|
|
|
// Use of this source code is governed by a MIT style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package gin
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
2015-04-09 13:15:02 +03:00
|
|
|
// TODO
|
|
|
|
// func debugRoute(httpMethod, absolutePath string, handlers []HandlerFunc) {
|
|
|
|
// func debugPrint(format string, values ...interface{}) {
|
|
|
|
|
2015-04-08 03:58:35 +03:00
|
|
|
func TestIsDebugging(t *testing.T) {
|
|
|
|
SetMode(DebugMode)
|
|
|
|
assert.True(t, IsDebugging())
|
|
|
|
SetMode(ReleaseMode)
|
|
|
|
assert.False(t, IsDebugging())
|
|
|
|
SetMode(TestMode)
|
|
|
|
assert.False(t, IsDebugging())
|
|
|
|
}
|