Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 226 for slowTest (0.22 sec)

  1. src/testing/slogtest/run_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package slogtest_test
    
    import (
    	"bytes"
    	"encoding/json"
    	"log/slog"
    	"testing"
    	"testing/slogtest"
    )
    
    func TestRun(t *testing.T) {
    	var buf bytes.Buffer
    
    	newHandler := func(*testing.T) slog.Handler {
    		buf.Reset()
    		return slog.NewJSONHandler(&buf, nil)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 20:37:12 UTC 2023
    - 623 bytes
    - Viewed (0)
  2. src/log/slog/slogtest_test.go

    // license that can be found in the LICENSE file.
    
    package slog_test
    
    import (
    	"bytes"
    	"encoding/json"
    	"fmt"
    	"io"
    	"log/slog"
    	"strings"
    	"testing"
    	"testing/slogtest"
    )
    
    func TestSlogtest(t *testing.T) {
    	for _, test := range []struct {
    		name  string
    		new   func(io.Writer) slog.Handler
    		parse func([]byte) (map[string]any, error)
    	}{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:50:22 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  3. src/testing/slogtest/example_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package slogtest_test
    
    import (
    	"bytes"
    	"encoding/json"
    	"log"
    	"log/slog"
    	"testing/slogtest"
    )
    
    // This example demonstrates one technique for testing a handler with this
    // package. The handler is given a [bytes.Buffer] to write to, and each line
    // of the resulting output is parsed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 04 18:32:54 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  4. src/log/slog/example_log_level_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package slog_test
    
    import (
    	"log"
    	"log/slog"
    	"log/slog/internal/slogtest"
    	"os"
    )
    
    // This example shows how to use slog.SetLogLoggerLevel to change the minimal level
    // of the internal default handler for slog package before calling slog.SetDefault.
    func ExampleSetLogLoggerLevel_log() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 10 21:25:30 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. src/log/slog/example_level_handler_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package slog_test
    
    import (
    	"context"
    	"log/slog"
    	"log/slog/internal/slogtest"
    	"os"
    )
    
    // A LevelHandler wraps a Handler with an Enabled method
    // that returns false for levels below a minimum.
    type LevelHandler struct {
    	level   slog.Leveler
    	handler slog.Handler
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 04 18:32:54 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. platforms/core-runtime/build-profile/src/main/java/org/gradle/profile/Operation.java

         */
        abstract long getElapsedTime();
    
        abstract String getDescription();
    
        /**
         * @return comparator that compares operations, slowest first, then alphabetically
         */
        public static Comparator<? super Operation> slowestFirst() {
            return new Comparator<Operation>() {
                @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 01 12:58:53 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/component/model/AttributePrecedenceSchemaAttributeMatcherTest.groovy

        def explanationBuilder = Stub(AttributeMatchingExplanationBuilder)
    
        def highest = Attribute.of("highest", String)
        def middle = Attribute.of("middle", String)
        def lowest = Attribute.of("lowest", String)
        // This has no precedence
        def additional = Attribute.of("usage", String)
    
        static class CompatibilityRule implements AttributeCompatibilityRule<String> {
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6K bytes
    - Viewed (0)
  8. src/cmd/vet/testdata/slog/slog.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file contains tests for the slog checker.
    
    package slog
    
    import "log/slog"
    
    func SlogTest() {
    	slog.Info("msg", "a") // ERROR "call to slog.Info missing a final value"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 18:11:19 UTC 2023
    - 338 bytes
    - Viewed (0)
  9. src/cmd/link/internal/ld/stackcheck.go

    			// back up, tracking the lowest numbered
    			// symbol in this cycle.
    			return true, sym
    		}
    
    		// Delete children of this node.
    		for _, out := range sc.graph[sym] {
    			if c, l := walk(origin, out.target); c {
    				cycle = true
    				if lowest == 0 {
    					// On first cycle detection,
    					// add sym to the set of
    					// lowest-numbered candidates.
    					lowest = sym
    				}
    				if l < lowest {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 24 16:49:08 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  10. internal/config/scanner/help.go

    		return config.DefaultHelpPostfix(DefaultKVS, key)
    	}
    
    	// Help provides help for config values
    	Help = config.HelpKVS{
    		config.HelpKV{
    			Key:         Speed,
    			Description: `customize scanner speed (default|slowest|slow|fast|fastest)` + defaultHelpPostfix(Speed),
    			Optional:    true,
    			Type:        "string",
    		},
    		config.HelpKV{
    			Key:         ExcessVersions,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Feb 12 07:41:53 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top