Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestEmptyGroup (0.16 sec)

  1. src/log/slog/value_test.go

    			t.Errorf("got %s (%#[1]v), want %s (%#[2]v)", got, tm)
    		}
    		if g, w := got.Location(), tm.Location(); g != w {
    			t.Errorf("%s: location: got %v, want %v", tm, g, w)
    		}
    	}
    }
    
    func TestEmptyGroup(t *testing.T) {
    	g := GroupValue(
    		Int("a", 1),
    		Group("g1", Group("g2")),
    		Group("g3", Group("g4", Int("b", 2))))
    	got := g.Group()
    	want := []Attr{Int("a", 1), Group("g3", Group("g4", Int("b", 2)))}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top