getStdTypeMappings creates a map of user type to standard type based on the provided TapdTaskData. It returns the created map.
(data *TapdTaskData)
| 203 | // getStdTypeMappings creates a map of user type to standard type based on the provided TapdTaskData. |
| 204 | // It returns the created map. |
| 205 | func getStdTypeMappings(data *TapdTaskData) map[string]string { |
| 206 | stdTypeMappings := make(map[string]string) |
| 207 | if data.Options.ScopeConfig == nil { |
| 208 | return stdTypeMappings |
| 209 | } |
| 210 | mapping := data.Options.ScopeConfig.TypeMappings |
| 211 | // Map user types to standard types |
| 212 | for userType, stdType := range mapping { |
| 213 | stdTypeMappings[userType] = strings.ToUpper(stdType) |
| 214 | } |
| 215 | return stdTypeMappings |
| 216 | } |
| 217 | |
| 218 | // getStatusMapping creates a map of original status values to standard status values |
| 219 | // based on the provided TapdTaskData. It returns the created map. |
no outgoing calls
no test coverage detected