(key string)
| 21 | } |
| 22 | |
| 23 | func isValidKeyString(key string) bool { |
| 24 | if len(key) > maxKeyLength { |
| 25 | return false |
| 26 | } |
| 27 | |
| 28 | for _, char := range []byte(key) { |
| 29 | if !isValidKeyChar(char) { |
| 30 | return false |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | return true |
| 35 | } |
| 36 | |
| 37 | func validateValue(value []byte, maxValueLength int) error { |
| 38 | if value == nil { |
no test coverage detected