Skip to content

Commit 66fd05b

Browse files
committed
. d updated markdown snippets
1 parent 2d6415f commit 66fd05b

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,28 @@ You can also declare which one to use. Either at the
9191

9292
### Method level
9393

94-
snippet: inline_reporter
94+
<!-- snippet: inline_reporter -->
95+
<a id='snippet-inline_reporter'></a>
96+
```go
97+
r := UseReporter(reporters.NewContinuousIntegrationReporter())
98+
defer r.Close()
99+
```
100+
<sup><a href='/approvals_test.go#L26-L29' title='Snippet source file'>snippet source</a> | <a href='#snippet-inline_reporter' title='Start of snippet'>anchor</a></sup>
101+
<!-- endSnippet -->
95102

96103
### Test Level
97104

98-
snippet: test_main_with_reporter
105+
<!-- snippet: test_main_with_reporter -->
106+
<a id='snippet-test_main_with_reporter'></a>
107+
```go
108+
func TestMain(m *testing.M) {
109+
r := UseReporter(reporters.NewContinuousIntegrationReporter())
110+
defer r.Close()
111+
112+
UseFolder("testdata")
113+
114+
os.Exit(m.Run())
115+
}
116+
```
117+
<sup><a href='/approvals_test.go#L13-L23' title='Snippet source file'>snippet source</a> | <a href='#snippet-test_main_with_reporter' title='Start of snippet'>anchor</a></sup>
118+
<!-- endSnippet -->

0 commit comments

Comments
 (0)