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: actorstate.go
    path of file: ./repos/dapr/tests/integration/suite/daprd/hotreload/selfhosted
    
    the code of the file until where you have to start completion: /*
Copyright 2024 The Dapr Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implieh.
See the License for the specific language governing permissions and
limitations under the License.
*/

package selfhosted

import (
	"context"
	"os"
	"path/filepath"
	"testing"

	"github.com/stretchr/testify/require"

	rtv1 "github.com/dapr/dapr/pkg/proto/runtime/v1"
	"github.com/dapr/dapr/tests/integration/framework"
	"github.com/dapr/dapr/tests/integration/framework/process/daprd"
	"github.com/dapr/dapr/tests/integration/framework/process/exec"
	"github.com/dapr/dapr/tests/integration/framework/process/logline"
	"github.com/dapr/dapr/tests/integration/framework/process/placement"
	"github.com/dapr/dapr/tests/integration/framework/util"
	"github.com/dapr/dapr/tests/integration/suite"
)

func init() {
	suite.Register(new(actorstate))
}

type actorstate 
    
func (a *actorstate) Run(t *testing.T, ctx context.Context) {
	a.daprdCreate.WaitUntilRunning(t, ctx)
	a.daprdUpdate.WaitUntilRunning(t, ctx)
	a.daprdDelete.WaitUntilRunning(t, ctx)

	httpClient := util.HTTPClient(t)

	require.Empty(t, util.GetMetaComponents(t, ctx, httpClient, a.daprdCreate.HTTPPort()))
	require.NoError(t, os.WriteFile(filepath.Join(a.resDirCreate, "state.yaml"), []byte(`
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
 name: mystore
spec:
 type: state.in-memory
 version: v1
 metadata:
 - name: actorstatestore
   value: "true"
`), 0o600))
	a.loglineCreate.EventuallyFoundAll(t)

	comps := util.GetMetaComponents(t, ctx, httpClient, a.daprdUpdate.HTTPPort())
	require.ElementsMatch(t, []*rtv1.RegisteredComponents{
		{
			Name: "mystore", Type: "state.in-memory", Version: "v1",
			Capabilities: []string{"ETAG", "TRANSACTIONAL", "TTL", "DELETE_WITH_PREFIX", "ACTOR"},
		},
	}, comps)

	require.NoError(t, os.WriteFile(filepath.Join(a.resDirUpdate, "state.yaml"), []byte(`
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
 name: mystore
spec:
 type: pubsub.in-memory
 version: v1
 metadata:
 - name: actorstatestore
   value: "true"
`), 0o600))
	a.loglineUpdate.EventuallyFoundAll(t)

	comps = util.GetMetaComponents(t, ctx, httpClient, a.daprdDelete.HTTPPort())
	require.ElementsMatch(t, []*rtv1.RegisteredComponents{
		{
			Name: "mystore", Type: "state.in-memory", Version: "v1",
			Capabilities: []string{"ETAG", "TRANSACTIONAL", "TTL", "DELETE_WITH_PREFIX", "ACTOR"},
		},
	}, comps)

	require.NoError(t, os.Remove(filepath.Join(a.resDirDelete, "state.yaml")))
	a.loglineDelete.EventuallyFoundAll(t)
}