@@ -19,6 +19,7 @@ import (
1919)
2020
2121func TestPrefixHeaderNoExtensions (t * testing.T ) {
22+ t .Parallel ()
2223 var tests = []string {
2324 "# Header 1\n " ,
2425 "<h1>Header 1</h1>\n " ,
@@ -88,6 +89,7 @@ func TestPrefixHeaderNoExtensions(t *testing.T) {
8889}
8990
9091func TestPrefixHeaderSpaceExtension (t * testing.T ) {
92+ t .Parallel ()
9193 var tests = []string {
9294 "# Header 1\n " ,
9395 "<h1>Header 1</h1>\n " ,
@@ -148,6 +150,7 @@ func TestPrefixHeaderSpaceExtension(t *testing.T) {
148150}
149151
150152func TestPrefixHeaderIdExtension (t * testing.T ) {
153+ t .Parallel ()
151154 var tests = []string {
152155 "# Header 1 {#someid}\n " ,
153156 "<h1 id=\" someid\" >Header 1</h1>\n " ,
@@ -208,6 +211,7 @@ func TestPrefixHeaderIdExtension(t *testing.T) {
208211}
209212
210213func TestPrefixHeaderIdExtensionWithPrefixAndSuffix (t * testing.T ) {
214+ t .Parallel ()
211215 var tests = []string {
212216 "# header 1 {#someid}\n " ,
213217 "<h1 id=\" PRE:someid:POST\" >header 1</h1>\n " ,
@@ -260,6 +264,7 @@ func TestPrefixHeaderIdExtensionWithPrefixAndSuffix(t *testing.T) {
260264}
261265
262266func TestPrefixAutoHeaderIdExtension (t * testing.T ) {
267+ t .Parallel ()
263268 var tests = []string {
264269 "# Header 1\n " ,
265270 "<h1 id=\" header-1\" >Header 1</h1>\n " ,
@@ -311,6 +316,7 @@ func TestPrefixAutoHeaderIdExtension(t *testing.T) {
311316}
312317
313318func TestPrefixAutoHeaderIdExtensionWithPrefixAndSuffix (t * testing.T ) {
319+ t .Parallel ()
314320 var tests = []string {
315321 "# Header 1\n " ,
316322 "<h1 id=\" PRE:header-1:POST\" >Header 1</h1>\n " ,
@@ -372,6 +378,7 @@ func TestPrefixAutoHeaderIdExtensionWithPrefixAndSuffix(t *testing.T) {
372378}
373379
374380func TestPrefixHeaderLevelOffset (t * testing.T ) {
381+ t .Parallel ()
375382 var offsetTests = []struct {
376383 offset int
377384 tests []string
@@ -458,6 +465,7 @@ func TestPrefixHeaderLevelOffset(t *testing.T) {
458465}
459466
460467func TestPrefixMultipleHeaderExtensions (t * testing.T ) {
468+ t .Parallel ()
461469 var tests = []string {
462470 "# Header\n \n # Header {#header}\n \n # Header 1" ,
463471 "<h1 id=\" header\" >Header</h1>\n \n <h1 id=\" header-1\" >Header</h1>\n \n <h1 id=\" header-1-1\" >Header 1</h1>\n " ,
@@ -466,6 +474,7 @@ func TestPrefixMultipleHeaderExtensions(t *testing.T) {
466474}
467475
468476func TestUnderlineHeaders (t * testing.T ) {
477+ t .Parallel ()
469478 var tests = []string {
470479 "Header 1\n ========\n " ,
471480 "<h1>Header 1</h1>\n " ,
@@ -516,6 +525,7 @@ func TestUnderlineHeaders(t *testing.T) {
516525}
517526
518527func TestUnderlineHeadersAutoIDs (t * testing.T ) {
528+ t .Parallel ()
519529 var tests = []string {
520530 "Header 1\n ========\n " ,
521531 "<h1 id=\" header-1\" >Header 1</h1>\n " ,
@@ -566,6 +576,7 @@ func TestUnderlineHeadersAutoIDs(t *testing.T) {
566576}
567577
568578func TestHorizontalRule (t * testing.T ) {
579+ t .Parallel ()
569580 var tests = []string {
570581 "-\n " ,
571582 "<p>-</p>\n " ,
@@ -631,6 +642,7 @@ func TestHorizontalRule(t *testing.T) {
631642}
632643
633644func TestUnorderedList (t * testing.T ) {
645+ t .Parallel ()
634646 var tests = []string {
635647 "* Hello\n " ,
636648 "<ul>\n <li>Hello</li>\n </ul>\n " ,
@@ -742,6 +754,7 @@ func TestUnorderedList(t *testing.T) {
742754}
743755
744756func TestOrderedList (t * testing.T ) {
757+ t .Parallel ()
745758 var tests = []string {
746759 "1. Hello\n " ,
747760 "<ol>\n <li>Hello</li>\n </ol>\n " ,
@@ -838,6 +851,7 @@ func TestOrderedList(t *testing.T) {
838851}
839852
840853func TestDefinitionList (t * testing.T ) {
854+ t .Parallel ()
841855 var tests = []string {
842856 "Term 1\n : Definition a\n " ,
843857 "<dl>\n <dt>Term 1</dt>\n <dd>Definition a</dd>\n </dl>\n " ,
@@ -940,6 +954,7 @@ func TestDefinitionList(t *testing.T) {
940954}
941955
942956func TestConsecutiveLists (t * testing.T ) {
957+ t .Parallel ()
943958 var tests = []string {
944959 "1. Hello\n \n * Hello\n \n Term 1\n : Definition a\n " ,
945960 "<ol>\n <li>Hello</li>\n </ol>\n \n <ul>\n <li>Hello</li>\n </ul>\n \n <dl>\n <dt>Term 1</dt>\n <dd>Definition a</dd>\n </dl>\n " ,
@@ -951,6 +966,7 @@ func TestConsecutiveLists(t *testing.T) {
951966}
952967
953968func TestPreformattedHtml (t * testing.T ) {
969+ t .Parallel ()
954970 var tests = []string {
955971 "<div></div>\n " ,
956972 "<div></div>\n " ,
@@ -1004,6 +1020,7 @@ func TestPreformattedHtml(t *testing.T) {
10041020}
10051021
10061022func TestPreformattedHtmlLax (t * testing.T ) {
1023+ t .Parallel ()
10071024 var tests = []string {
10081025 "Paragraph\n <div>\n Here? >&<\n </div>\n " ,
10091026 "<p>Paragraph</p>\n \n <div>\n Here? >&<\n </div>\n " ,
@@ -1027,6 +1044,7 @@ func TestPreformattedHtmlLax(t *testing.T) {
10271044}
10281045
10291046func TestFencedCodeBlock (t * testing.T ) {
1047+ t .Parallel ()
10301048 var tests = []string {
10311049 "``` go\n func foo() bool {\n \t return true;\n }\n ```\n " ,
10321050 "<pre><code class=\" language-go\" >func foo() bool {\n \t return true;\n }\n </code></pre>\n " ,
@@ -1122,6 +1140,7 @@ func TestFencedCodeBlock(t *testing.T) {
11221140}
11231141
11241142func TestFencedCodeInsideBlockquotes (t * testing.T ) {
1143+ t .Parallel ()
11251144 cat := func (s ... string ) string { return strings .Join (s , "\n " ) }
11261145 var tests = []string {
11271146 cat ("> ```go" ,
@@ -1234,6 +1253,7 @@ okay
12341253}
12351254
12361255func TestTable (t * testing.T ) {
1256+ t .Parallel ()
12371257 var tests = []string {
12381258 "a | b\n ---|---\n c | d\n " ,
12391259 "<table>\n <thead>\n <tr>\n <th>a</th>\n <th>b</th>\n </tr>\n </thead>\n \n " +
@@ -1281,6 +1301,7 @@ func TestTable(t *testing.T) {
12811301}
12821302
12831303func TestUnorderedListWith_EXTENSION_NO_EMPTY_LINE_BEFORE_BLOCK (t * testing.T ) {
1304+ t .Parallel ()
12841305 var tests = []string {
12851306 "* Hello\n " ,
12861307 "<ul>\n <li>Hello</li>\n </ul>\n " ,
@@ -1392,6 +1413,7 @@ func TestUnorderedListWith_EXTENSION_NO_EMPTY_LINE_BEFORE_BLOCK(t *testing.T) {
13921413}
13931414
13941415func TestOrderedList_EXTENSION_NO_EMPTY_LINE_BEFORE_BLOCK (t * testing.T ) {
1416+ t .Parallel ()
13951417 var tests = []string {
13961418 "1. Hello\n " ,
13971419 "<ol>\n <li>Hello</li>\n </ol>\n " ,
@@ -1488,6 +1510,7 @@ func TestOrderedList_EXTENSION_NO_EMPTY_LINE_BEFORE_BLOCK(t *testing.T) {
14881510}
14891511
14901512func TestFencedCodeBlock_EXTENSION_NO_EMPTY_LINE_BEFORE_BLOCK (t * testing.T ) {
1513+ t .Parallel ()
14911514 var tests = []string {
14921515 "``` go\n func foo() bool {\n \t return true;\n }\n ```\n " ,
14931516 "<pre><code class=\" language-go\" >func foo() bool {\n \t return true;\n }\n </code></pre>\n " ,
@@ -1562,6 +1585,7 @@ func TestFencedCodeBlock_EXTENSION_NO_EMPTY_LINE_BEFORE_BLOCK(t *testing.T) {
15621585}
15631586
15641587func TestListWithFencedCodeBlock (t * testing.T ) {
1588+ t .Parallel ()
15651589 var tests = []string {
15661590 "1. one\n \n ```\n code\n ```\n \n 2. two\n " ,
15671591 "<ol>\n <li><p>one</p>\n \n <pre><code>code\n </code></pre></li>\n \n <li><p>two</p></li>\n </ol>\n " ,
@@ -1573,6 +1597,7 @@ func TestListWithFencedCodeBlock(t *testing.T) {
15731597}
15741598
15751599func TestListWithMalformedFencedCodeBlock (t * testing.T ) {
1600+ t .Parallel ()
15761601 // Ensure that in the case of an unclosed fenced code block in a list,
15771602 // no source gets ommitted (even if it is malformed).
15781603 // See russross/blackfriday#372 for context.
@@ -1587,6 +1612,7 @@ func TestListWithMalformedFencedCodeBlock(t *testing.T) {
15871612}
15881613
15891614func TestListWithFencedCodeBlockNoExtensions (t * testing.T ) {
1615+ t .Parallel ()
15901616 // If there is a fenced code block in a list, and FencedCode is not set,
15911617 // lists should be processed normally.
15921618 var tests = []string {
@@ -1600,6 +1626,7 @@ func TestListWithFencedCodeBlockNoExtensions(t *testing.T) {
16001626}
16011627
16021628func TestTitleBlock_EXTENSION_TITLEBLOCK (t * testing.T ) {
1629+ t .Parallel ()
16031630 var tests = []string {
16041631 "% Some title\n " +
16051632 "% Another title line\n " +
@@ -1614,6 +1641,7 @@ func TestTitleBlock_EXTENSION_TITLEBLOCK(t *testing.T) {
16141641}
16151642
16161643func TestBlockComments (t * testing.T ) {
1644+ t .Parallel ()
16171645 var tests = []string {
16181646 "Some text\n \n <!-- comment -->\n " ,
16191647 "<p>Some text</p>\n \n <!-- comment -->\n " ,
@@ -1628,6 +1656,7 @@ func TestBlockComments(t *testing.T) {
16281656}
16291657
16301658func TestTOC (t * testing.T ) {
1659+ t .Parallel ()
16311660 var tests = []string {
16321661 "# Title\n \n ##Subtitle1\n \n ##Subtitle2" ,
16331662 //"<nav>\n<ul>\n<li><a href=\"#toc_0\">Title</a>\n<ul>\n<li><a href=\"#toc_1\">Subtitle1</a></li>\n<li><a href=\"#toc_2\">Subtitle2</a></li>\n</ul></li>\n</ul>\n</nav>\n\n<h1 id=\"toc_0\">Title</h1>\n\n<h2 id=\"toc_1\">Subtitle1</h2>\n\n<h2 id=\"toc_2\">Subtitle2</h2>\n",
@@ -1748,6 +1777,7 @@ func TestTOC(t *testing.T) {
17481777}
17491778
17501779func TestCompletePage (t * testing.T ) {
1780+ t .Parallel ()
17511781 var tests = []string {
17521782 "*foo*" ,
17531783 `<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -1769,6 +1799,7 @@ func TestCompletePage(t *testing.T) {
17691799}
17701800
17711801func TestIsFenceLine (t * testing.T ) {
1802+ t .Parallel ()
17721803 tests := []struct {
17731804 data []byte
17741805 infoRequested bool
0 commit comments