Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/log/slog/text_handler_test.go

    package slog
    
    import (
    	"bytes"
    	"context"
    	"errors"
    	"fmt"
    	"internal/testenv"
    	"io"
    	"strings"
    	"testing"
    	"time"
    )
    
    var testTime = time.Date(2000, 1, 2, 3, 4, 5, 0, time.UTC)
    
    func TestTextHandler(t *testing.T) {
    	for _, test := range []struct {
    		name             string
    		attr             Attr
    		wantKey, wantVal string
    	}{
    		{
    			"unquoted",
    			Int("a", 1),
    			"a", "1",
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 19:05:59 UTC 2023
    - 3.8K bytes
    - Viewed (0)
Back to top