(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func Test_setZeroes(t *testing.T) { |
| 9 | type args struct { |
| 10 | matrix [][]int |
| 11 | } |
| 12 | tests := []struct { |
| 13 | name string |
| 14 | args args |
| 15 | want [][]int |
| 16 | }{ |
| 17 | { |
| 18 | name: "set matrix zeros", |
| 19 | args: args{ |
| 20 | matrix: [][]int{ |
| 21 | {1, 1, 0}, |
| 22 | {1, 1, 2}, |
| 23 | }, |
| 24 | }, |
| 25 | want: [][]int{ |
| 26 | {0, 0, 0}, |
| 27 | {1, 1, 0}, |
| 28 | }, |
| 29 | }, |
| 30 | { |
| 31 | name: "set matrix zeros", |
| 32 | args: args{ |
| 33 | matrix: [][]int{ |
| 34 | {1, 1, 1}, |
| 35 | {0, 1, 2}, |
| 36 | }, |
| 37 | }, |
| 38 | want: [][]int{ |
| 39 | {0, 1, 1}, |
| 40 | {0, 0, 0}, |
| 41 | }, |
| 42 | }, |
| 43 | { |
| 44 | name: "set matrix zeros", |
| 45 | args: args{ |
| 46 | matrix: [][]int{ |
| 47 | {1, 1, 1}, |
| 48 | {1, 0, 1}, |
| 49 | {1, 1, 1}, |
| 50 | }, |
| 51 | }, |
| 52 | want: [][]int{ |
| 53 | {1, 0, 1}, |
| 54 | {0, 0, 0}, |
| 55 | {1, 0, 1}, |
| 56 | }, |
| 57 | }, |
| 58 | { |
| 59 | name: "set matrix zeros", |
| 60 | args: args{ |
| 61 | matrix: [][]int{ |
| 62 | {0, 1, 2, 0}, |
| 63 | {3, 4, 5, 2}, |
| 64 | {1, 3, 1, 5}, |
| 65 | }, |
nothing calls this directly
no test coverage detected