(t *testing.T)
| 53 | } |
| 54 | |
| 55 | func Test4x16Decoder(t *testing.T) { |
| 56 | decoder := NewDecoder4x16() |
| 57 | |
| 58 | decoder.Update(false, false, false, false) |
| 59 | checkDecoder4x16Output(decoder, 0, t) |
| 60 | |
| 61 | decoder.Update(false, false, false, true) |
| 62 | checkDecoder4x16Output(decoder, 1, t) |
| 63 | |
| 64 | decoder.Update(false, false, true, false) |
| 65 | checkDecoder4x16Output(decoder, 2, t) |
| 66 | |
| 67 | decoder.Update(false, false, true, true) |
| 68 | checkDecoder4x16Output(decoder, 3, t) |
| 69 | |
| 70 | decoder.Update(false, true, false, false) |
| 71 | checkDecoder4x16Output(decoder, 4, t) |
| 72 | |
| 73 | decoder.Update(false, true, false, true) |
| 74 | checkDecoder4x16Output(decoder, 5, t) |
| 75 | |
| 76 | decoder.Update(false, true, true, false) |
| 77 | checkDecoder4x16Output(decoder, 6, t) |
| 78 | |
| 79 | decoder.Update(false, true, true, true) |
| 80 | checkDecoder4x16Output(decoder, 7, t) |
| 81 | |
| 82 | decoder.Update(true, false, false, false) |
| 83 | checkDecoder4x16Output(decoder, 8, t) |
| 84 | |
| 85 | decoder.Update(true, false, false, true) |
| 86 | checkDecoder4x16Output(decoder, 9, t) |
| 87 | |
| 88 | decoder.Update(true, false, true, false) |
| 89 | checkDecoder4x16Output(decoder, 10, t) |
| 90 | |
| 91 | decoder.Update(true, false, true, true) |
| 92 | checkDecoder4x16Output(decoder, 11, t) |
| 93 | |
| 94 | decoder.Update(true, true, false, false) |
| 95 | checkDecoder4x16Output(decoder, 12, t) |
| 96 | |
| 97 | decoder.Update(true, true, false, true) |
| 98 | checkDecoder4x16Output(decoder, 13, t) |
| 99 | |
| 100 | decoder.Update(true, true, true, false) |
| 101 | checkDecoder4x16Output(decoder, 14, t) |
| 102 | |
| 103 | decoder.Update(true, true, true, true) |
| 104 | checkDecoder4x16Output(decoder, 15, t) |
| 105 | } |
| 106 | |
| 107 | func checkDecoder2x4Output(decoder *Decoder2x4, expected []bool, t *testing.T) { |
| 108 | for i, _ := range decoder.outputs { |
nothing calls this directly
no test coverage detected