mirror of
https://github.com/yuin/goldmark
synced 2025-03-04 23:04:52 +00:00
Merge pull request #293 from zhsj/short-test
Skip performance test in short mode
This commit is contained in:
commit
96e98dca10
1 changed files with 15 additions and 0 deletions
|
|
@ -94,6 +94,9 @@ func nowMillis() int64 {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestDeepNestedLabelPerformance(t *testing.T) {
|
func TestDeepNestedLabelPerformance(t *testing.T) {
|
||||||
|
if testing.Short() {
|
||||||
|
t.Skip("skipping performance test in short mode")
|
||||||
|
}
|
||||||
markdown := New(WithRendererOptions(
|
markdown := New(WithRendererOptions(
|
||||||
html.WithXHTML(),
|
html.WithXHTML(),
|
||||||
html.WithUnsafe(),
|
html.WithUnsafe(),
|
||||||
|
|
@ -111,6 +114,9 @@ func TestDeepNestedLabelPerformance(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestManyProcessingInstructionPerformance(t *testing.T) {
|
func TestManyProcessingInstructionPerformance(t *testing.T) {
|
||||||
|
if testing.Short() {
|
||||||
|
t.Skip("skipping performance test in short mode")
|
||||||
|
}
|
||||||
markdown := New(WithRendererOptions(
|
markdown := New(WithRendererOptions(
|
||||||
html.WithXHTML(),
|
html.WithXHTML(),
|
||||||
html.WithUnsafe(),
|
html.WithUnsafe(),
|
||||||
|
|
@ -128,6 +134,9 @@ func TestManyProcessingInstructionPerformance(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestManyCDATAPerformance(t *testing.T) {
|
func TestManyCDATAPerformance(t *testing.T) {
|
||||||
|
if testing.Short() {
|
||||||
|
t.Skip("skipping performance test in short mode")
|
||||||
|
}
|
||||||
markdown := New(WithRendererOptions(
|
markdown := New(WithRendererOptions(
|
||||||
html.WithXHTML(),
|
html.WithXHTML(),
|
||||||
html.WithUnsafe(),
|
html.WithUnsafe(),
|
||||||
|
|
@ -145,6 +154,9 @@ func TestManyCDATAPerformance(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestManyDeclPerformance(t *testing.T) {
|
func TestManyDeclPerformance(t *testing.T) {
|
||||||
|
if testing.Short() {
|
||||||
|
t.Skip("skipping performance test in short mode")
|
||||||
|
}
|
||||||
markdown := New(WithRendererOptions(
|
markdown := New(WithRendererOptions(
|
||||||
html.WithXHTML(),
|
html.WithXHTML(),
|
||||||
html.WithUnsafe(),
|
html.WithUnsafe(),
|
||||||
|
|
@ -162,6 +174,9 @@ func TestManyDeclPerformance(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestManyCommentPerformance(t *testing.T) {
|
func TestManyCommentPerformance(t *testing.T) {
|
||||||
|
if testing.Short() {
|
||||||
|
t.Skip("skipping performance test in short mode")
|
||||||
|
}
|
||||||
markdown := New(WithRendererOptions(
|
markdown := New(WithRendererOptions(
|
||||||
html.WithXHTML(),
|
html.WithXHTML(),
|
||||||
html.WithUnsafe(),
|
html.WithUnsafe(),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue