(rows=100)
| 5 | |
| 6 | |
| 7 | def generate_markdown_mock_data(rows=100): |
| 8 | return dict( |
| 9 | columns=[ |
| 10 | dict(id="markdown-headers", name=["", "Headers"], presentation="markdown"), |
| 11 | dict( |
| 12 | id="markdown-italics", |
| 13 | name=["Emphasis", "Italics"], |
| 14 | presentation="markdown", |
| 15 | ), |
| 16 | dict(id="markdown-links", name=["", "Links"], presentation="markdown"), |
| 17 | dict(id="markdown-lists", name=["", "Lists"], presentation="markdown"), |
| 18 | dict(id="markdown-tables", name=["", "Tables"], presentation="markdown"), |
| 19 | dict(id="markdown-quotes", name=["", "Quotes"], presentation="markdown"), |
| 20 | dict( |
| 21 | id="markdown-inline-code", |
| 22 | name=["", "Inline code"], |
| 23 | presentation="markdown", |
| 24 | ), |
| 25 | dict( |
| 26 | id="markdown-code-blocks", |
| 27 | name=["", "Code blocks"], |
| 28 | presentation="markdown", |
| 29 | ), |
| 30 | dict(id="markdown-images", name=["", "Images"], presentation="markdown"), |
| 31 | ], |
| 32 | data=[ |
| 33 | { |
| 34 | "markdown-headers": "{0} row {1}".format("#" * (i % 6), i), |
| 35 | "markdown-italics": "{0}{1}{0}".format("*" if i % 2 == 1 else "_", i), |
| 36 | "markdown-links": "[Learn about {0}](http://en.wikipedia.org/wiki/{0})".format( |
| 37 | i |
| 38 | ), |
| 39 | "markdown-lists": """1. Row number {0} |
| 40 | - subitem {0} |
| 41 | - subsubitem {0} |
| 42 | - subitem two {0} |
| 43 | 2. Next row {1}""".format( |
| 44 | i, i + 1 |
| 45 | ), |
| 46 | "markdown-tables": """Current | Next |
| 47 | --- | --- |
| 48 | {0} | {1}""".format( |
| 49 | i, i + 1 |
| 50 | ), |
| 51 | "markdown-quotes": "> A quote for row number {0}".format(i), |
| 52 | "markdown-inline-code": "This is row `{0}` in this table.".format(i), |
| 53 | "markdown-code-blocks": """```python |
| 54 | def hello_table(i={0}): |
| 55 | print("hello, " + i) |
| 56 | """.format( |
| 57 | i |
| 58 | ), |
| 59 | "markdown-images": "".format(i), |
| 60 | } |
| 61 | for i in range(rows) |
| 62 | ], |
| 63 | ) |
| 64 |
nothing calls this directly
no test coverage detected
searching dependent graphs…