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: public_methods_test.go
    path of file: ./repos/temporal/common/testing/temporalapi
    
    the code of the file until where you have to start completion: // The MIT License
//
// Copyright (c) 2022 Temporal Technologies Inc.  All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Soft
    
func TestWalkExportedMethods(t *testing.T) {
	require := require.New(t)
	var iface publicIface
	for _, tc := range []struct {
		Name   string
		Given  any
		Expect []string
	}{{
		Name:   "No public methods",
		Given:  noPublic{},
		Expect: nil,
	}, {
		Name:   "Some public methods",
		Given:  somePublic{},
		Expect: []string{"A", "C"},
	}, {
		Name:   "Interface with methods",
		Given:  &iface,
		Expect: []string{"A", "C"},
	}} {
		var methods []string
		temporalapi.WalkExportedMethods(tc.Given, func(m reflect.Method) {
			methods = append(methods, m.Name)
		})

		require.Equal(tc.Expect, methods, tc.Name)
	}
}