15 lines
		
	
	
		
			226 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			226 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package utils
 | 
						|
 | 
						|
import (
 | 
						|
	"strings"
 | 
						|
	"testing"
 | 
						|
)
 | 
						|
 | 
						|
func TestGetFuncName(t *testing.T) {
 | 
						|
	name := GetFuncName(TestGetFuncName)
 | 
						|
	t.Log(name)
 | 
						|
	if !strings.HasSuffix(name, ".TestGetFuncName") {
 | 
						|
		t.Error("get func name error")
 | 
						|
	}
 | 
						|
}
 |