Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestHandlers (0.25 sec)

  1. src/log/slog/internal/benchmarks/handlers_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package benchmarks
    
    import (
    	"bytes"
    	"context"
    	"log/slog"
    	"slices"
    	"testing"
    )
    
    func TestHandlers(t *testing.T) {
    	ctx := context.Background()
    	r := slog.NewRecord(testTime, slog.LevelInfo, testMessage, 0)
    	r.AddAttrs(testAttrs...)
    	t.Run("text", func(t *testing.T) {
    		var b bytes.Buffer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. pkg/revisions/default_watcher_test.go

    	// change default to "green"
    	whc.CreateOrUpdate(webhook("green"))
    	expectRevision(t, w, "green")
    
    	// remove default
    	whc.Delete(defaultTagWebhookName, "")
    	expectRevision(t, w, "")
    }
    
    func TestHandlers(t *testing.T) {
    	stop := test.NewStop(t)
    	client := kube.NewFakeClient()
    	w := NewDefaultWatcher(client, "default").(*defaultWatcher)
    	client.RunAndWait(stop)
    	go w.Run(stop)
    	whc := clienttest.Wrap(t, w.webhooks)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 23 17:46:59 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  3. src/net/http/pprof/pprof_test.go

    	for _, p := range pprof.Profiles() {
    		_, ok := profileDescriptions[p.Name()]
    		if ok != true {
    			t.Errorf("%s does not exist in profileDescriptions map\n", p.Name())
    		}
    	}
    }
    
    func TestHandlers(t *testing.T) {
    	testCases := []struct {
    		path               string
    		handler            http.HandlerFunc
    		statusCode         int
    		contentType        string
    		contentDisposition string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 07 19:52:28 UTC 2023
    - 9.7K bytes
    - Viewed (0)
Back to top