- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for gofmt_test (0.26 sec)
-
src/cmd/gofmt/gofmt_test.go
func TestRewrite(t *testing.T) { // determine input files match, err := filepath.Glob("testdata/*.input") if err != nil { t.Fatal(err) } // add larger examples match = append(match, "gofmt.go", "gofmt_test.go") for _, in := range match { name := filepath.Base(in) t.Run(name, func(t *testing.T) { out := in // for files where input and output are identical if strings.HasSuffix(in, ".input") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 19:22:49 UTC 2022 - 4.3K bytes - Viewed (0) -
src/fmt/fmt_test.go
{"%☠", make(chan int), "%!☠(chan int=0xPTR)"}, {"%☠", func() {}, "%!☠(func()=0xPTR)"}, {"%☠", reflect.ValueOf(renamedInt(0)), "%!☠(fmt_test.renamedInt=0)"}, {"%☠", SI{renamedInt(0)}, "{%!☠(fmt_test.renamedInt=0)}"}, {"%☠", &[]any{I(1), G(2)}, "&[%!☠(fmt_test.I=1) %!☠(fmt_test.G=2)]"}, {"%☠", SI{&[]any{I(1), G(2)}}, "{%!☠(*[]interface {}=&[1 2])}"}, {"%☠", reflect.Value{}, "<invalid reflect.Value>"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:31:55 UTC 2024 - 58.6K bytes - Viewed (0) -
tests/gorm_test.go
black <******@****.***> 1685588076 +0800
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Thu Jun 01 07:22:21 UTC 2023 - 3.3K bytes - Viewed (0) -
src/internal/coverage/cformat/fmt_test.go
Than McIntosh <******@****.***> 1684256782 -0400
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 11:36:57 UTC 2023 - 3.9K bytes - Viewed (0) -
src/fmt/stringer_example_test.go
// Copyright 2017 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. package fmt_test import ( "fmt" ) // Animal has a Name and an Age to represent an animal. type Animal struct { Name string Age uint } // String makes Animal satisfy the Stringer interface. func (a Animal) String() string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 30 19:40:13 UTC 2018 - 551 bytes - Viewed (0) -
src/cmd/go/testdata/script/list_importmap.txt
stdout '^flag \[fmt\.test\] MAP: map\[fmt:fmt \[fmt\.test\]\]' stdout '^fmt\.test MAP: map\[(.* )?testing:testing \[fmt\.test\]' ! stdout '^fmt\.test MAP: map\[(.* )?os:' stdout '^fmt\.test IMPORT: \[fmt \[fmt\.test\] fmt_test \[fmt\.test\] os reflect testing \[fmt\.test\] testing/internal/testdeps \[fmt\.test\]\]' -- a/b/b.go -- package b import _ "c/d" -- a/vendor/c/d/d.go --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 956 bytes - Viewed (0) -
src/fmt/state_test.go
// Copyright 2022 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. package fmt_test import ( "fmt" "testing" ) type testState struct { width int widthOK bool prec int precOK bool flag map[int]bool } var _ fmt.State = testState{} func (s testState) Write(b []byte) (n int, err error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 06 09:19:31 UTC 2022 - 1.4K bytes - Viewed (0) -
src/fmt/gostringer_example_test.go
// Copyright 2018 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. package fmt_test import ( "fmt" ) // Address has a City, State and a Country. type Address struct { City string State string Country string } // Person has a Name, Age and Address. type Person struct { Name string Age uint Addr *Address }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 06 04:25:17 UTC 2018 - 1.5K bytes - Viewed (0) -
src/math/big/floatconv_test.go
{"%+.3g", 1.0, "+1"}, {"%+.3g", -1.0, "-1"}, {"% .3g", -1.0, "-1"}, {"% .3g", 1.0, " 1"}, {"%b", float32(1.0), "8388608p-23"}, {"%b", 1.0, "4503599627370496p-52"}, // from fmt/fmt_test.go: old test/fmt_test.go {"%e", 1.0, "1.000000e+00"}, {"%e", 1234.5678e3, "1.234568e+06"}, {"%e", 1234.5678e-8, "1.234568e-05"}, {"%e", -7.0, "-7.000000e+00"}, {"%e", -1e-9, "-1.000000e-09"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 24.3K bytes - Viewed (0) -
src/fmt/stringer_test.go
// Copyright 2010 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. package fmt_test import ( . "fmt" "testing" ) type TI int type TI8 int8 type TI16 int16 type TI32 int32 type TI64 int64 type TU uint type TU8 uint8 type TU16 uint16 type TU32 uint32 type TU64 uint64 type TUI uintptr type TF float64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 2.1K bytes - Viewed (0)