mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Add UT test to TestMax if equal scenario
This commit is contained in:
		@@ -102,6 +102,11 @@ func TestMax(t *testing.T) {
 | 
			
		||||
			b:        api.ResourceList{api.ResourceCPU: resource.MustParse("100m")},
 | 
			
		||||
			expected: api.ResourceList{api.ResourceCPU: resource.MustParse("150m")},
 | 
			
		||||
		},
 | 
			
		||||
		"matching-equal": {
 | 
			
		||||
			a:        api.ResourceList{api.ResourceCPU: resource.MustParse("100m")},
 | 
			
		||||
			b:        api.ResourceList{api.ResourceCPU: resource.MustParse("100m")},
 | 
			
		||||
			expected: api.ResourceList{api.ResourceCPU: resource.MustParse("100m")},
 | 
			
		||||
		},
 | 
			
		||||
	}
 | 
			
		||||
	for testName, testCase := range testCases {
 | 
			
		||||
		sum := Max(testCase.a, testCase.b)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user