(t *testing.T)
| 40 | } |
| 41 | |
| 42 | func TestOffsetXYZ(t *testing.T) { |
| 43 | f := &File{ |
| 44 | Lines: []Line{ |
| 45 | { |
| 46 | Codes: []GCode{ |
| 47 | {Letter: "G", Value: 1}, |
| 48 | }, |
| 49 | }, |
| 50 | { |
| 51 | Codes: []GCode{ |
| 52 | {Letter: "X", Value: 2}, |
| 53 | }, |
| 54 | }, |
| 55 | { |
| 56 | Codes: []GCode{ |
| 57 | {Letter: "X", Value: 3}, |
| 58 | {Letter: "Y", Value: 4}, |
| 59 | {Letter: "Z", Value: 5}, |
| 60 | }, |
| 61 | }, |
| 62 | }, |
| 63 | } |
| 64 | |
| 65 | OffsetXYZ(f, 1, 2, 3) |
| 66 | |
| 67 | assert.Equal(t, &File{ |
| 68 | Lines: []Line{ |
| 69 | { |
| 70 | Codes: []GCode{ |
| 71 | {Letter: "G", Value: 1}, |
| 72 | }, |
| 73 | }, |
| 74 | { |
| 75 | Codes: []GCode{ |
| 76 | {Letter: "X", Value: 3}, |
| 77 | }, |
| 78 | }, |
| 79 | { |
| 80 | Codes: []GCode{ |
| 81 | {Letter: "X", Value: 4}, |
| 82 | {Letter: "Y", Value: 6}, |
| 83 | {Letter: "Z", Value: 8}, |
| 84 | }, |
| 85 | }, |
| 86 | }, |
| 87 | }, f) |
| 88 | } |
nothing calls this directly
no test coverage detected