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: marshal_test.go
    path of file: ./repos/encore/runtimes/go/appruntime/apisdk/api/errmarshalling
    
    the code of the file until where you have to start completion: package errmarshalling_test

import (
	"errors"
	"fmt"
	"testing"

	"github.com/modern-go/reflect2"

	"encore.dev/appruntime/apisdk/api/errmarshalling"
	"encore.dev/beta/errs"
	"encore.dev/storage/cache"
	"encore.dev/storage/sqldb"
	"encore.dev/storage/sqldb/sqlerr"
)

type SomeRandom
    
func TestMarshal(t *testing.T) {
	params := []struct {
		name string
		err  error
	}{
		{"basic", errors.New("blah")},
		{"joined errors", errors.Join(errors.New("error a"), errors.New("error b"))},
		{"single wrapped error", fmt.Errorf("outer error: %w", errors.New("inner issue"))},
		{"3 deep single wrapped error", fmt.Errorf("outer error: %w", fmt.Errorf("inner issue: %w", errors.New("inner inner issue")))},
		{"multiple wrapped errors", fmt.Errorf("outer error: %w", errors.Join(errors.New("inner issue"), errors.New("inner issue 2")))},
		{"encore errs", errs.B().Code(errs.OutOfRange).Meta("foo", "bar", "x", 123, "y", false).Msg("out of range in foo").Err()},
		{"encore err wrapped in Go error", fmt.Errorf("outer: %w", errs.B().Code(errs.OutOfRange).Msg("out of range in foo").Err())},
		{"sqldb error", &sqldb.Error{
			Code:           sqlerr.NotNullViolation,
			Severity:       sqlerr.SeverityError,
			DatabaseCode:   "PG2341",
			Message:        "Not null happened matey",
			SchemaName:     "your_database",
			TableName:      "in_this_table",
			ColumnName:     "on_this_column",
			DataTypeName:   "string",
			ConstraintName: "not_null",
		}},
		{"cache operror", &cache.OpError{
			Operation: "get",
			RawKey:    "foo",
			Err:       errors.New("some error"),
		}},
	}

	for _, p := range params {
		p := p
		t.Run(p.name, func(t *testing.T) {
			_ = roundTrip(t, p.err)
		})
	}

	t.Run("encore err with underlying", func(t *testing.T) {
		inner := errs.B().Code(errs.OutOfRange).Msg("out of range in foo").Err()
		errIn := errs.B().Code(errs.Internal).
			Cause(inner).
			Meta("hello", 1, "goodbye", 2).
			Msg("blah10").
			Err()
		errOut := roundTrip(t, errIn)

		fmt.Println("Error In: ", errIn)
		fmt.Println("Error Out:", errOut)
	})
}