mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
55d0b89417
commit
555a9bc806
1 changed files with 6 additions and 1 deletions
|
@ -14,6 +14,7 @@
|
|||
package internal
|
||||
|
||||
import (
|
||||
"runtime"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
@ -29,5 +30,9 @@ func (t *Test) MyTestMethod() string {
|
|||
func TestMethodToName(t *testing.T) {
|
||||
test := &Test{}
|
||||
|
||||
if runtime.Compiler == "gccgo" {
|
||||
require.Equal(t, "$thunk0", methodToName(test.MyTestMethod))
|
||||
} else {
|
||||
require.Equal(t, "MyTestMethod", methodToName(test.MyTestMethod))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue