- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 1,123 for testCases (1.49 sec)
-
pkg/controller/nodeipam/ipam/range_allocator_test.go
break } } } } // run the test cases for _, tc := range testCases { testFunc(tc) } } func TestAllocateOrOccupyCIDRFailure(t *testing.T) { testCases := []testCase{ { description: "When there's no ServiceCIDR return first CIDR in range", fakeNodeHandler: &testutil.FakeNodeHandler{ Existing: []*v1.Node{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 10:06:15 UTC 2024 - 25.2K bytes - Viewed (0) -
cmd/http-tracer_test.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package cmd import ( "testing" ) // Test redactLDAPPwd() func TestRedactLDAPPwd(t *testing.T) { testCases := []struct { query string expectedQuery string }{ {"", ""}, { "?Action=AssumeRoleWithLDAPIdentity&LDAPUsername=myusername&LDAPPassword=can+youreadthis%3F&Version=2011-06-15",
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 1.8K bytes - Viewed (0) -
internal/amztime/parse_test.go
}, } for _, testCase := range testCases { testCase := testCase t.Run(testCase.timeStr, func(t *testing.T) { gott, goterr := Parse(testCase.timeStr) if !errors.Is(goterr, testCase.expectedErr) { t.Errorf("expected %v, got %v", testCase.expectedErr, goterr) } if !gott.Equal(testCase.expectedTime) { t.Errorf("expected %v, got %v", testCase.expectedTime, gott) } }) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Sep 07 14:24:54 UTC 2022 - 1.6K bytes - Viewed (0) -
src/cmd/go/internal/fsys/fsys_test.go
33 -- subdir4/file4.txt -- 444 -- overlayfiles/subdir2_file2.txt -- 2 -- overlayfiles/subdir3_file3b.txt -- 66666 -- overlayfiles/subdir4 -- x -- subdir6/file6.txt -- six `) testCases := []struct { path string want, wantErr bool }{ {"", true, true}, {".", true, false}, {cwd, true, false}, {cwd + string(filepath.Separator), true, false}, // subdir1 is only on disk
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 18:52:11 UTC 2023 - 29.1K bytes - Viewed (0) -
pkg/kubelet/cm/memorymanager/state/state_checkpoint_test.go
assert.Equal(t, expectedMemoryAssignments, restoredMemoryAssignments, "state memory assignments mismatch") } func TestCheckpointStateRestore(t *testing.T) { testCases := []struct { description string checkpointContent string expectedError string expectedState *stateMemory }{ { "Restore non-existing checkpoint", "", "",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jul 30 03:35:26 UTC 2022 - 10.6K bytes - Viewed (0) -
pkg/securitycontext/accessors_test.go
"k8s.io/utils/pointer" ) func TestPodSecurityContextAccessor(t *testing.T) { fsGroup := int64(2) runAsUser := int64(1) runAsGroup := int64(1) runAsNonRoot := true testcases := []*api.PodSecurityContext{ nil, {}, {FSGroup: &fsGroup}, {HostIPC: true}, {HostNetwork: true}, {HostPID: true}, {RunAsNonRoot: &runAsNonRoot}, {RunAsUser: &runAsUser},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 22 16:15:27 UTC 2023 - 27.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/watch_tracker_test.go
expected: 0, }, } for _, testCase := range testCases { t.Run(testCase.name, func(t *testing.T) { requestInfo, err := requestInfoFactory.NewRequestInfo(testCase.request) if err != nil { t.Fatalf("unexpected error from requestInfo creation: %#v", err) } count := watchTracker.GetInterestedWatchCount(requestInfo) if count != testCase.expected {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 03 14:02:51 UTC 2021 - 10.4K bytes - Viewed (0) -
internal/http/server_test.go
} for i, testCase := range testCases { server := NewServer(testCase.addrs). UseHandler(testCase.handler). UseShutdownTimeout(DefaultShutdownTimeout) if testCase.certFn != nil { server = server.UseTLSConfig(&tls.Config{ PreferServerCipherSuites: true, GetCertificate: testCase.certFn, }) } if server == nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 2.7K bytes - Viewed (0) -
internal/amztime/iso8601_time_test.go
expectedOutput: "2009-11-13T04:51:01.941Z", }, } for _, testCase := range testCases { testCase := testCase t.Run(testCase.expectedOutput, func(t *testing.T) { gotOutput := ISO8601Format(testCase.date) t.Log("Go", testCase.date.Format(iso8601TimeFormat)) if gotOutput != testCase.expectedOutput { t.Errorf("Expected %s, got %s", testCase.expectedOutput, gotOutput) } }) }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Dec 12 18:28:30 UTC 2022 - 1.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder_test.go
{"def", true, "def", 3}, {"", true, "", 0}, } for i, testCase := range testCases { adv, token, err := splitYAMLDocument([]byte(testCase.input), testCase.atEOF) if err != nil { t.Errorf("%d: unexpected error: %v", i, err) continue } if adv != testCase.adv { t.Errorf("%d: advance did not match: %d %d", i, testCase.adv, adv) } if testCase.expect != string(token) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 10 07:29:34 UTC 2023 - 12.4K bytes - Viewed (0)