mirror of
https://github.com/zrepl/zrepl.git
synced 2025-07-14 13:15:10 +02:00
22 lines
313 B
Go
22 lines
313 B
Go
package tracing
|
|
|
|
import (
|
|
"context"
|
|
"strings"
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestIt(t *testing.T) {
|
|
ctx := context.Background()
|
|
|
|
ctx = Child(ctx, "a")
|
|
ctx = Child(ctx, "b")
|
|
ctx = Child(ctx, "c")
|
|
ctx = Child(ctx, "d")
|
|
|
|
assert.Equal(t, "dcba", strings.Join(GetStack(ctx), ""))
|
|
|
|
}
|