15 lines
238 B
Go
15 lines
238 B
Go
package template
|
|
|
|
import (
|
|
"testing"
|
|
"zlib/src/zlog"
|
|
)
|
|
|
|
var s *Singleton
|
|
|
|
func TestGetInstance(t *testing.T) {
|
|
s1 := GetSingleton()
|
|
s2 := GetSingleton()
|
|
zlog.Infof("TestGetInstance %s %s %i %s", s1, s2, s1 == singleton, singleton)
|
|
}
|