Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 785 for printhex (0.36 sec)

  1. src/go/printer/performance_test.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.
    
    // This file implements a simple printer performance benchmark:
    // go test -bench=BenchmarkPrint
    
    package printer
    
    import (
    	"bytes"
    	"go/ast"
    	"go/parser"
    	"go/token"
    	"io"
    	"log"
    	"os"
    	"testing"
    )
    
    var (
    	fileNode *ast.File
    	fileSize int64
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 15:10:10 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/cmd/config_test.go

    		},
    	}
    
    	outputFlags := output.NewOutputFlags(&imageTextPrintFlags{}).WithTypeSetter(outputapischeme.Scheme).WithDefaultOutput(output.TextOutput)
    	printer, err := outputFlags.ToPrinter()
    	if err != nil {
    		t.Fatalf("can't create printer for the output format %s: %+v", output.TextOutput, err)
    	}
    
    	for _, tc := range testcases {
    		t.Run(tc.name, func(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 13K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/ProcessOutputProviderIntegrationTest.groovy

            outputContains("CWD=${workingDir.absolutePath}")
        }
    
        def "providers.exec provider can be wired to the task"() {
            given:
            def testScript = ShellScript.builder()
                .printText("Script output")
                .writeTo(testDirectory, "script")
    
            buildFile """
                def execProvider = providers.exec {
                    ${cmdToExecConfig(*testScript.commandLine)}
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 8K bytes
    - Viewed (0)
  4. platforms/core-configuration/declarative-dsl-provider/src/integTest/groovy/org/gradle/internal/declarativedsl/PluginClasspathLeakIntegrationTest.groovy

                        api 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1'
                    }
    
                    gradlePlugin {
                        plugins {
                            'printer' { id='printer'; implementationClass='org.gradle.test.TestPlugin' }
                        }
                    }
    
                    publishing {
                        publications {
                            maven(MavenPublication) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 01 09:47:33 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/pkg/printers/typesetter.go

    	"k8s.io/apimachinery/pkg/runtime/schema"
    )
    
    // TypeSetterPrinter is an implementation of ResourcePrinter wraps another printer with types set on the objects
    type TypeSetterPrinter struct {
    	Delegate ResourcePrinter
    
    	Typer runtime.ObjectTyper
    }
    
    // NewTypeSetter constructs a wrapping printer with required params
    func NewTypeSetter(typer runtime.ObjectTyper) *TypeSetterPrinter {
    	return &TypeSetterPrinter{Typer: typer}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 23:00:24 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/cli-runtime/pkg/printers/bench_test.go

    }
    
    func BenchmarkJSONPathPrinter(b *testing.B) {
    	data := newBenchmarkList()
    	b.ResetTimer()
    	benchmarkPrinter(b, func() ResourcePrinter {
    		printer, _ := NewJSONPathPrinter("{range .items[*]}{.metadata.name}\n{end}")
    		return printer
    	}, data)
    }
    
    func BenchmarkYAMLPrinter(b *testing.B) {
    	data := newBenchmarkList()
    	b.ResetTimer()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 30 00:36:07 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  7. src/go/doc/comment/html.go

    )
    
    // An htmlPrinter holds the state needed for printing a [Doc] as HTML.
    type htmlPrinter struct {
    	*Printer
    	tight bool
    }
    
    // HTML returns an HTML formatting of the [Doc].
    // See the [Printer] documentation for ways to customize the HTML output.
    func (p *Printer) HTML(d *Doc) []byte {
    	hp := &htmlPrinter{Printer: p}
    	var out bytes.Buffer
    	for _, x := range d.Content {
    		hp.block(&out, x)
    	}
    	return out.Bytes()
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/cli-runtime/pkg/printers/json_test.go

    func TestJSONPrinter(t *testing.T) {
    	testPrinter(t, NewTypeSetter(scheme.Scheme).ToPrinter(&JSONPrinter{}), json.Unmarshal)
    }
    
    func testPrinter(t *testing.T, printer ResourcePrinter, unmarshalFunc func(data []byte, v interface{}) error) {
    	buf := bytes.NewBuffer([]byte{})
    
    	err := printer.PrintObj(&testData, buf)
    	if err != nil {
    		t.Fatal(err)
    	}
    	var poutput TestStruct
    	// Verify that given function runs without error.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 4K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/MergeProviderIntegrationTest.groovy

                    @TaskAction
                    void printText() {
                        println getString().get()
                    }
                }
    
                abstract class StringListTask extends DefaultTask {
                    @Input
                    abstract ListProperty<String> getStrings()
    
                    @TaskAction
                    void printText() {
                        println getStrings().get()
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 22:25:49 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. src/log/slog/example_level_handler_test.go

    	th := slog.NewTextHandler(os.Stdout, &slog.HandlerOptions{ReplaceAttr: slogtest.RemoveTime})
    	logger := slog.New(NewLevelHandler(slog.LevelWarn, th))
    	logger.Info("not printed")
    	logger.Warn("printed")
    
    	// Output:
    	// level=WARN msg=printed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 04 18:32:54 UTC 2023
    - 2.2K bytes
    - Viewed (0)
Back to top