(b content.Info)
| 119 | } |
| 120 | |
| 121 | func (*commandContentList) compressionInfoStringString(b content.Info) string { |
| 122 | h := b.CompressionHeaderID |
| 123 | if h == content.NoCompression { |
| 124 | return "-" |
| 125 | } |
| 126 | |
| 127 | s := string(compression.HeaderIDToName[h]) |
| 128 | if s == "" { |
| 129 | s = fmt.Sprintf("compression-%x", h) |
| 130 | } |
| 131 | |
| 132 | if b.OriginalLength > 0 { |
| 133 | s += " " + formatCompressionPercentage(int64(b.OriginalLength), int64(b.PackedLength)) |
| 134 | } |
| 135 | |
| 136 | return s |
| 137 | } |
no test coverage detected