You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: stream_test.go
    path of file: ./repos/chainlink/core/services/streams
    
    the code of the file until where you have to start completion: package streams

import (
	"context"
	"math/big"
	"testing"
	"t
    
func Test_Stream(t *testing.T) {
	lggr := logger.TestLogger(t)
	runner := &mockRunner{}
	spec := pipeline.Spec{}
	id := StreamID(123)
	ctx := testutils.Context(t)

	t.Run("Run", func(t *testing.T) {
		strm := newStream(lggr, id, spec, runner, nil)

		t.Run("errors with empty pipeline", func(t *testing.T) {
			_, _, err := strm.Run(ctx)
			assert.EqualError(t, err, "Run failed: Run failed due to unparseable pipeline: empty pipeline")
		})

		spec.DotDagSource = `
succeed             [type=memo value=42]
succeed;
`

		strm = newStream(lggr, id, spec, runner, nil)

		t.Run("executes the pipeline (success)", func(t *testing.T) {
			runner.run = &pipeline.Run{ID: 42}
			runner.trrs = []pipeline.TaskRunResult{pipeline.TaskRunResult{ID: UUID}}
			runner.err = nil

			run, trrs, err := strm.Run(ctx)
			assert.NoError(t, err)

			assert.Equal(t, int64(42), run.ID)
			require.Len(t, trrs, 1)
			assert.Equal(t, UUID, trrs[0].ID)
		})
		t.Run("executes the pipeline (failure)", func(t *testing.T) {
			runner.err = errors.New("something exploded")

			_, _, err := strm.Run(ctx)
			require.Error(t, err)

			assert.EqualError(t, err, "Run failed: error executing run for spec ID 0: something exploded")
		})
	})
}