(hash string)
| 423 | } |
| 424 | |
| 425 | func (this *MemoryList) prefix(hash string) string { |
| 426 | var prefix string |
| 427 | if len(hash) > 3 { |
| 428 | prefix = hash[:3] |
| 429 | } else { |
| 430 | prefix = hash |
| 431 | } |
| 432 | _, ok := this.itemMaps[prefix] |
| 433 | if !ok { |
| 434 | prefix = "000" |
| 435 | } |
| 436 | return prefix |
| 437 | } |
no outgoing calls
no test coverage detected