Commit c75eddb0 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent a676063e
...@@ -47,27 +47,27 @@ ...@@ -47,27 +47,27 @@
// Basic package usage is as follows: // Basic package usage is as follows:
// //
// func TestSomething(t *testing.T) { // func TestSomething(t *testing.T) {
// tracetest.Verify(t, func(t *tracetest.T) { // tracetest.Verify(t, func(t *tracetest.T) {
// // setup tracing so that events of test system are collected and // // setup tracing so that events of test system are collected and
// // synchronously delivered to t.RxEvent. This can be done with // // synchronously delivered to t.RxEvent. This can be done with e.g.
// // e.g. package lab.nexedi.com/kirr/go123/tracing or by other similar means. // // package lab.nexedi.com/kirr/go123/tracing or by other similar means.
// ... // ...
// //
// // tell t to which stream an event should go. // // tell t to which stream an event should go.
// t.SetEventRouter(...) // 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> // // <code to start the system>
// t.Expect("<stream₁>", eventOk₁) // t.Expect("<stream₁>", eventOk₁)
// t.Expect("<stream₂>", eventOk₂) // t.Expect("<stream₂>", eventOk₂)
// ... // ...
// //
// // <code to further control/affect the system> // // <code to further control/affect the system>
// t.Expect("<stream₃>", eventOk₃) // t.Expect("<stream₃>", eventOk₃)
// t.Expect("<stream₄>", eventOk₄) // t.Expect("<stream₄>", eventOk₄)
// ... // ...
// }) // })
// } // }
// //
// See example_test.go for more details. // See example_test.go for more details.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment