Files
gocryptotrader/gctscript/modules/loader/loader_test.go
suranmiao 78382afb14 refactor: use reflect.TypeFor instead of reflect.TypeOf and improve related tests (#2101)
* refactor: using reflect.TypeFor

Signed-off-by: suranmiao <solsui@outlook.com>

* refactor: remove unused reflect.TypeFor calls and improve test assertions

* refactor: simplify TestSetup by removing reflect.TypeFor

* test: enhance test assertions and improve parallel execution in TestSetup

---------

Signed-off-by: suranmiao <solsui@outlook.com>
Co-authored-by: Adrian Gallagher <adrian.gallagher@thrasher.io>
2025-12-10 10:54:54 +11:00

15 lines
313 B
Go

package loader
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestGetModuleMap(t *testing.T) {
x := GetModuleMap()
require.NotNil(t, x, "GetModuleMap must not return nil")
assert.NotZero(t, x.Len(), "GetModuleMap should return a map with entries")
}