Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestDefaultHandle (0.23 sec)

  1. src/log/slog/handler_test.go

    package slog
    
    import (
    	"bytes"
    	"context"
    	"encoding/json"
    	"io"
    	"path/filepath"
    	"slices"
    	"strconv"
    	"strings"
    	"sync"
    	"testing"
    	"time"
    )
    
    func TestDefaultHandle(t *testing.T) {
    	ctx := context.Background()
    	preAttrs := []Attr{Int("pre", 0)}
    	attrs := []Attr{Int("a", 1), String("b", "two")}
    	for _, test := range []struct {
    		name  string
    		with  func(Handler) Handler
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 02 13:57:53 UTC 2023
    - 19.6K bytes
    - Viewed (0)
Back to top