(t *testing.T)
| 90 | } |
| 91 | |
| 92 | func TestEffectiveCopyDestination(t *testing.T) { |
| 93 | source := &sheets.GridRange{ |
| 94 | StartRowIndex: 0, |
| 95 | EndRowIndex: 2, |
| 96 | StartColumnIndex: 0, |
| 97 | EndColumnIndex: 3, |
| 98 | } |
| 99 | destination := &sheets.GridRange{ |
| 100 | StartRowIndex: 10, |
| 101 | EndRowIndex: 11, |
| 102 | StartColumnIndex: 20, |
| 103 | EndColumnIndex: 21, |
| 104 | } |
| 105 | |
| 106 | got := EffectiveCopyDestination(source, destination, true) |
| 107 | if got.StartRowIndex != 10 || got.EndRowIndex != 13 || |
| 108 | got.StartColumnIndex != 20 || got.EndColumnIndex != 22 { |
| 109 | t.Fatalf("destination = %#v", got) |
| 110 | } |
| 111 | } |
nothing calls this directly
no test coverage detected