(thinking *internalregistry.ThinkingSupport)
| 254 | } |
| 255 | |
| 256 | func thinkingSupportToPlugin(thinking *internalregistry.ThinkingSupport) *ThinkingSupport { |
| 257 | if thinking == nil { |
| 258 | return nil |
| 259 | } |
| 260 | return &ThinkingSupport{ |
| 261 | Min: thinking.Min, |
| 262 | Max: thinking.Max, |
| 263 | ZeroAllowed: thinking.ZeroAllowed, |
| 264 | DynamicAllowed: thinking.DynamicAllowed, |
| 265 | Levels: cloneStringSlice(thinking.Levels), |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | func cloneStringSlice(in []string) []string { |
| 270 | if len(in) == 0 { |
no test coverage detected