Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for testLogs (0.18 sec)

  1. pkg/kubelet/logs/container_log_manager_test.go

    	logs, err := os.ReadDir(dir)
    	require.NoError(t, err)
    	assert.Len(t, logs, 5)
    	assert.Equal(t, testLogs[0], logs[0].Name())
    	assert.Equal(t, testLogs[1]+"."+timestamp, logs[1].Name())
    	assert.Equal(t, testLogs[4]+compressSuffix, logs[2].Name())
    	assert.Equal(t, testLogs[2]+"."+timestamp, logs[3].Name())
    	assert.Equal(t, testLogs[3], logs[4].Name())
    }
    
    func TestClean(t *testing.T) {
    	ctx := context.Background()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  2. src/testing/internal/testdeps/deps.go

    func (TestDeps) ImportPath() string {
    	return ImportPath
    }
    
    // testLog implements testlog.Interface, logging actions by package os.
    type testLog struct {
    	mu  sync.Mutex
    	w   *bufio.Writer
    	set bool
    }
    
    func (l *testLog) Getenv(key string) {
    	l.add("getenv", key)
    }
    
    func (l *testLog) Open(name string) {
    	l.add("open", name)
    }
    
    func (l *testLog) Stat(name string) {
    	l.add("stat", name)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. src/cmd/go/internal/test/test.go

    	testlog, err := os.ReadFile(a.Objdir + "testlog.txt")
    	if err != nil || !bytes.HasPrefix(testlog, testlogMagic) || testlog[len(testlog)-1] != '\n' {
    		if cache.DebugTest {
    			if err != nil {
    				fmt.Fprintf(os.Stderr, "testcache: %s: reading testlog: %v\n", a.Package.ImportPath, err)
    			} else {
    				fmt.Fprintf(os.Stderr, "testcache: %s: reading testlog: malformed\n", a.Package.ImportPath)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  4. src/internal/testlog/exit.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package testlog
    
    import (
    	"sync"
    	_ "unsafe" // for linkname
    )
    
    // PanicOnExit0 reports whether to panic on a call to os.Exit(0).
    // This is in the testlog package because, like other definitions in
    // package testlog, it is a hook between the testing package and the
    // os package. This is used to ensure that an early call to os.Exit(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/preemption/preemption_test.go

    		nodes              []*v1.Node
    		testPods           []*v1.Pod
    		initPods           []*v1.Pod
    		numViolatingVictim int
    		expected           [][]Candidate
    	}{
    		{
    			name: "no pdb violation",
    			nodes: []*v1.Node{
    				st.MakeNode().Name("node1").Capacity(veryLargeRes).Obj(),
    				st.MakeNode().Name("node2").Capacity(veryLargeRes).Obj(),
    			},
    			testPods: []*v1.Pod{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  6. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    }
    
    func TestDryRunPreemption(t *testing.T) {
    	tests := []struct {
    		name                    string
    		args                    *config.DefaultPreemptionArgs
    		nodeNames               []string
    		testPods                []*v1.Pod
    		initPods                []*v1.Pod
    		registerPlugins         []tf.RegisterPluginFunc
    		pdbs                    []*policy.PodDisruptionBudget
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  7. src/cmd/vet/vet_test.go

    	}
    	err = errorCheck(string(output), false, fullshort...)
    	if err != nil {
    		t.Errorf("error check failed: %s", err)
    	}
    }
    
    // TestTags verifies that the -tags argument controls which files to check.
    func TestTags(t *testing.T) {
    	t.Parallel()
    	for tag, wantFile := range map[string]int{
    		"testtag":     1, // file1
    		"x testtag y": 1,
    		"othertag":    2,
    	} {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  8. src/os/file.go

    func Chdir(dir string) error {
    	if e := syscall.Chdir(dir); e != nil {
    		testlog.Open(dir) // observe likely non-existent directory
    		return &PathError{Op: "chdir", Path: dir, Err: e}
    	}
    	if runtime.GOOS == "windows" {
    		getwdCache.Lock()
    		getwdCache.dir = dir
    		getwdCache.Unlock()
    	}
    	if log := testlog.Logger(); log != nil {
    		wd, err := Getwd()
    		if err == nil {
    			log.Chdir(wd)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:37 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  9. src/os/exec.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package os
    
    import (
    	"errors"
    	"internal/testlog"
    	"runtime"
    	"sync"
    	"sync/atomic"
    	"syscall"
    	"time"
    )
    
    // ErrProcessDone indicates a [Process] has finished.
    var ErrProcessDone = errors.New("os: process already finished")
    
    type processMode uint8
    
    const (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  10. src/cmd/go/internal/cfg/cfg.go

    		GOROOTsrc = filepath.Join(goroot, "src")
    	}
    
    	installedGOOS = runtime.GOOS
    	installedGOARCH = runtime.GOARCH
    	if isTestGo {
    		if testOS := os.Getenv("TESTGO_GOHOSTOS"); testOS != "" {
    			installedGOOS = testOS
    		}
    		if testArch := os.Getenv("TESTGO_GOHOSTARCH"); testArch != "" {
    			installedGOARCH = testArch
    		}
    	}
    
    	if runtime.Compiler != "gccgo" {
    		if goroot == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.3K bytes
    - Viewed (0)
Back to top