- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for TestKlog (0.55 sec)
-
pkg/log/scope_test.go
f() _ = Sync() }) if err != nil { t.Fatalf("Got error '%v', expected success", err) } if lines[len(lines)-1] == "" { return lines[:len(lines)-1] } return lines } func TestKlog(t *testing.T) { cases := []struct { log func() expected string }{ { func() { klog.Error("foo") }, "error\tklog\tfoo$", }, { func() { klog.Error("foo") }, "foo$", },
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jan 03 17:36:09 UTC 2024 - 11K bytes - Viewed (0) -
src/cmd/go/testdata/script/test_chatty_parallel_success_run.txt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 26 19:50:36 UTC 2022 - 1K bytes - Viewed (0) -
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) -
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) -
src/os/stat.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package os import "internal/testlog" // Stat returns a [FileInfo] describing the named file. // If there is an error, it will be of type [*PathError]. func Stat(name string) (FileInfo, error) { testlog.Stat(name) return statNolog(name) } // Lstat returns a [FileInfo] describing the named file.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 973 bytes - Viewed (0) -
pkg/kubelet/logs/container_log_manager_test.go
testFile.Close() testLog := testFile.Name() c := &containerLogManager{osInterface: container.RealOS{}} require.NoError(t, c.compressLog(testLog)) _, err = os.Stat(testLog + compressSuffix) assert.NoError(t, err, "log should be compressed") _, err = os.Stat(testLog + tmpSuffix) assert.Error(t, err, "temporary log should be renamed") _, err = os.Stat(testLog)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 12.7K bytes - Viewed (0) -
src/os/env.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // General environment variables. package os import ( "internal/testlog" "syscall" ) // Expand replaces ${var} or $var in the string based on the mapping function. // For example, [os.ExpandEnv](s) is equivalent to [os.Expand](s, [os.Getenv]).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 3.9K bytes - Viewed (0) -
src/os/proc.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. // Process etc. package os import ( "internal/testlog" "runtime" "syscall" ) // Args hold the command-line arguments, starting with the program name. var Args []string func init() { if runtime.GOOS == "windows" { // Initialized in exec_windows.go.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 2.3K bytes - Viewed (0) -
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) -
src/test/java/org/codelibs/core/log/LoggerTest.java
* @throws Exception */ @Test public void testFatal() throws Exception { logger.fatal("fatal"); } /** * @throws Exception */ @Test public void testLog() throws Exception { logger.log("ILOGTEST0001"); } /** * @throws Exception */ @Test public void testLogWithArgs() throws Exception {
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 3.8K bytes - Viewed (0)