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: either4_test.go
    path of file: ./repos/mo
    
    the code of the file until where you have to start completion: package mo

import (
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestNewEither4(t *testing.T) {
	is := assert.New(t)

	either4Arg1 := NewEither4Arg1[int, bool, float64, string](42)
	is.Equal(Either4[int, bool, float64, string]{argId: either4ArgId1, arg1: 42}, either4Arg1)

	either4Arg2 := NewEither4Arg2[int, bool, float64, string](true)
	is.Equal(Either4[int, bool, float64, string]{argId: either4ArgId2, arg2: true}, either4Arg2)

	either4Arg3 := NewEither4Arg3[int, bool, float64, string](1.2)
	is.Equal(Either4[int, bool, float64, string]{argId: either4ArgId3, arg3: 1.2}, either4Arg3)

	either4Arg4 := NewEither4Arg4[int, bool, float64, string]("Hello")
	is.Equal(Either4[int, bool, float64, string]{argId: either4ArgId4, arg4: "Hello"}, either4Arg4)
}

func TestEither4IsArg(t *testing.T) {
	is := assert.New(t)

	either4Arg1 := NewEither4Arg1[int, bool, float64, string](42)
	either4Arg2 := NewEither4Arg2[int, bool, float64, string](true)
	either4Arg3 := NewEither4Arg3[int, bool, float64, string](1.2)
	either4Arg4 := NewEither4Arg4[int, bool, float64, string]("Hello")

	is.True(either4Arg1.IsArg1())
	is.False(either4Arg1.IsArg2())
	is.False(either4Arg1.IsArg3())
	is.False(either4Arg1.IsArg4())

	is.False(either4Arg2.IsArg1())
	is.True(either4Arg2.IsArg2())
	is.False(either4Arg2.IsArg3())
	is.False(either4Arg2.IsArg4())

	is.False(either4Arg3.IsArg1())
	is.False(either4Arg3.IsArg2())
	is.True(either4Arg3.IsArg3())
	is.False(either4Arg3.IsArg4())

	is.False(either4Arg4.IsArg1())
	is.False(either4Arg4.IsArg2())
	is.False(either4Arg4.IsArg3())
	is.True(either4Arg4.IsArg4())
}

func TestEither4GetArg(t *testing.T) {
	is := assert.New(t)

	either4Arg1 := NewEither4Arg1[int, bool, float64, string](42)
	either4Arg2 := NewEither4Arg2[int, bool, float64, string](true)
	either4Arg3 := NewEither4Arg3[int, bool, float64, string](1.2)
	either4Arg4 := NewEither4Arg4[int, bool, float64, string]("Hello")

	result1_1, ok1_1 := either4Arg1.Arg1()
	_, ok1_2 := either4Arg1.Arg2()
	_, ok1_3 := either4Arg1.Arg3()
	_, ok1_4 := either4Arg1.Arg4()

	is.Equal(42, result1_1)
	is.True(ok1_1)
	is.False(ok1_2)
	is.False(ok1_3)
	is.False(ok1_4)

	_, ok2_1 := either4Arg2.Arg1()
	result2, ok2_2 := either4Arg2.Arg2()
	_, ok2_3 := either4Arg2.Arg3()
	_, ok2_4 := either4Arg2.Arg4()

	is.Equal(true, result2)
	is.False(ok2_1)
	is.True(ok2_2)
	is.False(ok2_3)
	is.False(ok2_4)

	_, ok3_1 := either4Arg3.Arg1()
	_, ok3_2 := either4Arg3.Arg2()
	result3, ok3_3 := either4Arg3.Arg3(
    
func TestEither4Match(t *testing.T) {
	is := assert.New(t)

	e1 := NewEither4Arg1[int, bool, float64, string](42).Match(func(v1 int) Either4[int, bool, float64, string] {
		is.Equal(42, v1)
		return NewEither4Arg1[int, bool, float64, string](21)
	}, func(v2 bool) Either4[int, bool, float64, string] {
		is.Fail("should not enter here")
		return NewEither4Arg2[int, bool, float64, string](false)
	}, func(v3 float64) Either4[int, bool, float64, string] {
		is.Fail("should not enter here")
		return NewEither4Arg3[int, bool, float64, string](2.1)
	}, func(v4 string) Either4[int, bool, float64, string] {
		is.Fail("should not enter here")
		return NewEither4Arg4[int, bool, float64, string]("Bye")
	})

	is.Equal(NewEither4Arg1[int, bool, float64, string](21), e1)

	e2 := NewEither4Arg2[int, bool, float64, string](true).Match(func(v1 int) Either4[int, bool, float64, string] {
		is.Fail("should not enter here")
		return NewEither4Arg1[int, bool, float64, string](21)
	}, func(v2 bool) Either4[int, bool, float64, string] {
		is.Equal(true, v2)
		return NewEither4Arg2[int, bool, float64, string](false)
	}, func(v3 float64) Either4[int, bool, float64, string] {
		is.Fail("should not enter here")
		return NewEither4Arg3[int, bool, float64, string](2.1)
	}, func(v4 string) Either4[int, bool, float64, string] {
		is.Fail("should not enter here")
		return NewEither4Arg4[int, bool, float64, string]("Bye")
	})

	is.Equal(NewEither4Arg2[int, bool, float64, string](false), e2)

	e3 := NewEither4Arg3[int, bool, float64, string](1.2).Match(func(v1 int) Either4[int, bool, float64, string] {
		is.Fail("should not enter here")
		return NewEither4Arg1[int, bool, float64, string](21)
	}, func(v2 bool) Either4[int, bool, float64, string] {
		is.Fail("should not enter here")
		return NewEither4Arg2[int, bool, float64, string](false)
	}, func(v3 float64) Either4[int, bool, float64, string] {
		is.Equal(1.2, v3)
		return NewEither4Arg3[int, bool, float64, string](2.1)
	}, func(v4 string) Either4[int, bool, float64, string] {
		is.Fail("should not enter here")
		return NewEither4Arg4[int, bool, float64, string]("Bye")
	})

	is.Equal(NewEither4Arg3[int, bool, float64, string](2.1), e3)

	e4 := NewEither4Arg4[int, bool, float64, string]("Hello").Match(func(v1 int) Either4[int, bool, float64, string] {
		is.Fail("should not enter here")
		return NewEither4Arg1[int, bool, float64, string](21)
	}, func(v2 bool) Either4[int, bool, float64, string] {
		is.Fail("should not enter here")
		return NewEither4Arg2[int, bool, float64, string](false)
	}, func(v3 float64) Either4[int, bool, float64, string] {
		is.Fail("should not enter here")
		return NewEither4Arg3[int, bool, float64, string](2.1)
	}, func(v4 string) Either4[int, bool, float64, string] {
		is.Equal("Hello", v4)
		return NewEither4Arg4[int, bool, float64, string]("Bye")
	})

	is.Equal(NewEither4Arg4[int, bool, float64, string]("Bye"), e4)
}