(bytes []byte, contentLoc string)
| 152 | ) |
| 153 | |
| 154 | func countTokensFromJson(bytes []byte, contentLoc string) (int, error) { |
| 155 | content := getContentFromJson(bytes, contentLoc) |
| 156 | return custom.Count(content) |
| 157 | } |
| 158 | |
| 159 | func getContentFromJson(bytes []byte, contentLoc string) string { |
| 160 | result := gjson.Get(string(bytes), contentLoc) |
no test coverage detected