Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCleanupEmptyMaps (0.2 sec)

  1. pilot/pkg/networking/core/match/match_test.go

    // limitations under the License.
    
    import (
    	"testing"
    
    	matcher "github.com/cncf/xds/go/xds/type/matcher/v3"
    	"github.com/google/go-cmp/cmp"
    
    	"istio.io/istio/pkg/util/protomarshal"
    )
    
    func TestCleanupEmptyMaps(t *testing.T) {
    	tc := []struct {
    		name  string
    		given func() Mapper
    		want  func() *matcher.Matcher
    	}{
    		{
    			name: "empty map at depth = 0",
    			given: func() Mapper {
    				// root (dest port):
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top