- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for copyTest (0.24 sec)
-
src/text/template/parse/node.go
for _, n := range l.Nodes { n.writeTo(sb) } } func (l *ListNode) CopyList() *ListNode { if l == nil { return l } n := l.tr.newList(l.Pos) for _, elem := range l.Nodes { n.append(elem.Copy()) } return n } func (l *ListNode) Copy() Node { return l.CopyList() } // TextNode holds plain text. type TextNode struct { NodeType Pos
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:57:51 UTC 2024 - 24.2K bytes - Viewed (0) -
src/syscall/js/js_test.go
err := recover() if err == nil { t.Errorf("expected panic") } }() fn() } var copyTests = []struct { srcLen int dstLen int copyLen int }{ {5, 3, 3}, {3, 5, 3}, {0, 0, 0}, } func TestCopyBytesToGo(t *testing.T) { for _, tt := range copyTests { t.Run(fmt.Sprintf("%d-to-%d", tt.srcLen, tt.dstLen), func(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 14:35:26 UTC 2024 - 17.7K bytes - Viewed (0) -
src/cmd/go/internal/modcmd/vendor.go
// to nudge people toward more agreement on the naming // and also trying to avoid false positives. var metaPrefixes = []string{ "AUTHORS", "CONTRIBUTORS", "COPYLEFT", "COPYING", "COPYRIGHT", "LEGAL", "LICENSE", "NOTICE", "PATENTS", } // matchMetadata reports whether info is a metadata file. func matchMetadata(dir string, info fs.DirEntry) bool {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 14 14:19:59 UTC 2024 - 14.5K bytes - Viewed (0) -
src/text/template/parse/parse.go
// Copy returns a copy of the [Tree]. Any parsing state is discarded. func (t *Tree) Copy() *Tree { if t == nil { return nil } return &Tree{ Name: t.Name, ParseName: t.ParseName, Root: t.Root.CopyList(), text: t.text, } } // Parse returns a map from template name to [Tree], created by parsing the // templates described in the argument string. The top-level template will be
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:57:51 UTC 2024 - 21.3K bytes - Viewed (0)