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: email_test.go
    path of file: ./repos/flyte/flyteadmin/pkg/async/notifications
    
    the code of the file until where you have to start completion: package notifications

import (
	"fmt"
	"strings"
	"testing"

	"github.com/stretchr/testify/assert"

	runtimeInterfaces "github.com/flyteorg/flyte/flyteadmin/pkg/runtime/interfaces"
	"github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin"
	"github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core"
	"github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event"
)

const executionProjectValue = "proj"
const executionDomainValue = "prod"
const executionNameValue = "e124"
const launchPlanProjectValue = "lp_proj"
const launchPlanDomainValue = "lp_domain"
const launchPlanNameValue = "lp_name"
const launchPlanVersionValue = "lp_version"
const workflowProjectValue = "wf_proj"
const workflowDomainValue = "wf_domain"
const workflowNameValue = "wf_name"
const workflowVersionValue = "wf_version"

var workflowExecution = &admin.Execution{
	Id: &core.WorkflowExecutionIdentifier{
		Project: executionProjectValue,
		Domain:  executionDomainValue,
		Name:    executionNameValue,
	},
	Spec: &admin.ExecutionSpec{
		LaunchPlan: &core.Identifier{
			Project: launchPlanProjectValue,
			Domain:  launchPlanDomainValue,
			Name:    launchPlanNameValue,
			Version: launchPlanVersionValue,
		},
	},
	Closure: &admin.ExecutionClosure{
		WorkflowId: &core.Identifier{
			Project: workflowProjectValue,
			Domain:  workflowDomainValue,
			Name:    workflowNameVal
    
func TestSubstituteAllTemplates(t *testing.T) {
	templateVars := map[string]string{
		fmt.Sprintf(substitutionParam, project):           executionProjectValue,
		fmt.Sprintf(substitutionParam, domain):            executionDomainValue,
		fmt.Sprintf(substitutionParam, name):              executionNameValue,
		fmt.Sprintf(substitutionParam, launchPlanProject): launchPlanProjectValue,
		fmt.Sprintf(substitutionParam, launchPlanDomain):  launchPlanDomainValue,
		fmt.Sprintf(substitutionParam, launchPlanName):    launchPlanNameValue,
		fmt.Sprintf(substitutionParam, launchPlanVersion): launchPlanVersionValue,
		fmt.Sprintf(substitutionParam, workflowProject):   workflowProjectValue,
		fmt.Sprintf(substitutionParam, workflowDomain):    workflowDomainValue,
		fmt.Sprintf(substitutionParam, workflowName):      workflowNameValue,
		fmt.Sprintf(substitutionParam, workflowVersion):   workflowVersionValue,
		fmt.Sprintf(substitutionParam, phase):             strings.ToLower(core.WorkflowExecution_SUCCEEDED.String()),
	}
	var messageTemplate, desiredResult []string
	for template, result := range templateVars {
		messageTemplate = append(messageTemplate, template)
		desiredResult = append(desiredResult, result)
	}
	request := admin.WorkflowExecutionEventRequest{
		Event: &event.WorkflowExecutionEvent{
			Phase: core.WorkflowExecution_SUCCEEDED,
		},
	}
	assert.Equal(t, strings.Join(desiredResult, ","),
		substituteEmailParameters(strings.Join(messageTemplate, ","), request, workflowExecution))
}