Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
c75eddb0
Commit
c75eddb0
authored
Jan 03, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
a676063e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
go/internal/xtracing/tracetest/tracetest.go
go/internal/xtracing/tracetest/tracetest.go
+17
-17
No files found.
go/internal/xtracing/tracetest/tracetest.go
View file @
c75eddb0
...
...
@@ -47,27 +47,27 @@
// Basic package usage is as follows:
//
// func TestSomething(t *testing.T) {
//
tracetest.Verify(t, func(t *tracetest.T) {
//
// setup tracing so that events of test system are collected and
//
// synchronously delivered to t.RxEvent. This can be done with
//
// e.g.
package lab.nexedi.com/kirr/go123/tracing or by other similar means.
//
...
//
tracetest.Verify(t, func(t *tracetest.T) {
//
// setup tracing so that events of test system are collected and
//
// synchronously delivered to t.RxEvent. This can be done with e.g.
//
//
package lab.nexedi.com/kirr/go123/tracing or by other similar means.
//
...
//
//
// tell t to which stream an event should go.
//
t.SetEventRouter(...)
//
// tell t to which stream an event should go.
//
t.SetEventRouter(...)
//
//
// run the system and verify it produces expected events
//
// run the system and verify it produces expected events
//
//
// <code to start the system>
//
t.Expect("<stream₁>", eventOk₁)
//
t.Expect("<stream₂>", eventOk₂)
//
...
//
// <code to start the system>
//
t.Expect("<stream₁>", eventOk₁)
//
t.Expect("<stream₂>", eventOk₂)
//
...
//
//
// <code to further control/affect the system>
//
t.Expect("<stream₃>", eventOk₃)
//
t.Expect("<stream₄>", eventOk₄)
//
...
//
})
//
// <code to further control/affect the system>
//
t.Expect("<stream₃>", eventOk₃)
//
t.Expect("<stream₄>", eventOk₄)
//
...
//
})
// }
//
// See example_test.go for more details.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment