(rows []policyTableRow, p *policy.Policy, def *policy.Definition)
| 213 | } |
| 214 | |
| 215 | func appendErrorHandlingPolicyRows(rows []policyTableRow, p *policy.Policy, def *policy.Definition) []policyTableRow { |
| 216 | return append(rows, |
| 217 | policyTableRow{"Error handling policy:", "", ""}, |
| 218 | policyTableRow{ |
| 219 | " Ignore file read errors:", |
| 220 | boolToString(p.ErrorHandlingPolicy.IgnoreFileErrors.OrDefault(false)), |
| 221 | definitionPointToString(p.Target(), def.ErrorHandlingPolicy.IgnoreFileErrors), |
| 222 | }, |
| 223 | policyTableRow{ |
| 224 | " Ignore directory read errors:", |
| 225 | boolToString(p.ErrorHandlingPolicy.IgnoreDirectoryErrors.OrDefault(false)), |
| 226 | definitionPointToString(p.Target(), def.ErrorHandlingPolicy.IgnoreDirectoryErrors), |
| 227 | }, |
| 228 | policyTableRow{ |
| 229 | " Ignore unknown types:", |
| 230 | boolToString(p.ErrorHandlingPolicy.IgnoreUnknownTypes.OrDefault(true)), |
| 231 | definitionPointToString(p.Target(), def.ErrorHandlingPolicy.IgnoreUnknownTypes), |
| 232 | }, |
| 233 | ) |
| 234 | } |
| 235 | |
| 236 | func appendLoggingPolicyRows(rows []policyTableRow, p *policy.Policy, def *policy.Definition) []policyTableRow { |
| 237 | return append(rows, |
no test coverage detected