(name string)
| 2399 | } |
| 2400 | |
| 2401 | func validatePredName(name string) error { |
| 2402 | if len(name) > math.MaxUint16 { |
| 2403 | return errors.Errorf("Predicate name length cannot be bigger than 2^16. Predicate: %v", |
| 2404 | name[:80]) |
| 2405 | } |
| 2406 | return nil |
| 2407 | } |
| 2408 | |
| 2409 | // formatTypes takes a list of TypeUpdates and converts them in to a list of |
| 2410 | // maps in a format that is human-readable to be marshaled into JSON. |
no test coverage detected