generateFilePrefix creates a deterministic, unique prefix for constants based on the file name
(filename string)
| 144 | |
| 145 | // generateFilePrefix creates a deterministic, unique prefix for constants based on the file name |
| 146 | func generateFilePrefix(filename string) string { |
| 147 | base := filepath.Base(filename) |
| 148 | hash := crc32.ChecksumIEEE([]byte(base)) |
| 149 | return fmt.Sprintf("z%08x", hash) |
| 150 | } |
| 151 | |
| 152 | func writeLimitConstants(b *bytes.Buffer, file string, f *parse.FileSet) { |
| 153 | if f.ArrayLimit != math.MaxUint32 || f.MapLimit != math.MaxUint32 { |
no outgoing calls
no test coverage detected
searching dependent graphs…