5583fa20 by slene

orm add ResetModelCache api for test case

1 parent 00a410ad
...@@ -98,3 +98,9 @@ func (mc *_modelCache) clean() { ...@@ -98,3 +98,9 @@ func (mc *_modelCache) clean() {
98 mc.cacheByFN = make(map[string]*modelInfo) 98 mc.cacheByFN = make(map[string]*modelInfo)
99 mc.done = false 99 mc.done = false
100 } 100 }
101
102 // Clean model cache. Then you can re-RegisterModel.
103 // Common use this api for test case.
104 func ResetModelCache() {
105 modelCache.clean()
106 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!