()
| 12 | ) |
| 13 | |
| 14 | func tabsDocWithEndIndex() map[string]any { |
| 15 | return map[string]any{ |
| 16 | "documentId": "doc1", |
| 17 | "title": "Multi-Tab Doc", |
| 18 | "tabs": []any{ |
| 19 | map[string]any{ |
| 20 | "tabProperties": map[string]any{"tabId": "t.first", "title": "First", "index": 0}, |
| 21 | "documentTab": map[string]any{ |
| 22 | "body": map[string]any{ |
| 23 | "content": []any{ |
| 24 | map[string]any{"endIndex": 10}, |
| 25 | }, |
| 26 | }, |
| 27 | }, |
| 28 | }, |
| 29 | map[string]any{ |
| 30 | "tabProperties": map[string]any{"tabId": "t.second", "title": "Second", "index": 1}, |
| 31 | "documentTab": map[string]any{ |
| 32 | "body": map[string]any{ |
| 33 | "content": []any{ |
| 34 | map[string]any{"endIndex": 20}, |
| 35 | }, |
| 36 | }, |
| 37 | }, |
| 38 | }, |
| 39 | }, |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | func TestDocsWriteUpdate_WithTab(t *testing.T) { |
| 44 | var batchRequests [][]*docs.Request |
no outgoing calls
no test coverage detected