an atomdrift project
Hostile 92% go Download

golang.org/x/tools v0.12.1-0.20230821203513-6eca6dfbb247

Official Go tools module

ActiveXObject name referenceBacktick shell command-substitution syntax

Evidence

GitHub service URL reference README.md · lines 81–88
81:31… r code changes.
82To learn how to submit changes, see https://golang.org/doc/contribute.html.
83
84The main issue tracker for the tools repository is located at
85https://github.com/golang/go/issues. Prefix your issue with "x/tools/(your
86subdir):" in the subject line, so it is easy to find.
87
88### JavaScript an …
Go strconv.Atoi call parse.go · lines 40–57
40:9… t.
41func ParseLine(line string) (*Benchmark, error) {
42 fields := strings.Fields(line)
43
44 // Two required, positional fields: Name and iterations.
⋯4 lines
49 return nil, fmt.Errorf(`first field does not start with "Benchmark"`)
50 }
51 n, err := strconv.Atoi(fields[1])
52 if err != nil {
53 return nil, err
⋯4 lines
imports reflect parse_test.go · lines 1–19
1// Copyright 2014 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package parse
6
7import (
8 "reflect"
9 "strings"
10 "testing"
11)
12
13func TestParseLine(t *testing.T) {
14 cases := []struct {
15 line string
⋯4 lines
Calls Go t.Error or t.Errorf parse_test.go · lines 74–88
⋯5 lines
79 }
80
81 for _, tt := range cases {
82 have, err := ParseLine(tt.line)
83 if tt.err && err == nil {
84 t.Errorf("parsing line %q should have failed", tt.line)
85 continue
86 }
87 if !reflect.DeepEqual(have, tt.want) {
88 t.Errorf("parsed lin …
Calls Go t.Fatal or t.Fatalf parse_test.go · lines 147–152
147:2… have, err := ParseSet(strings.NewReader(in))
148 if err != nil {
149 t.Fatalf("unexpected err during ParseSet: %v", err)
150 }
151 if !reflect.DeepEqual(want, have) {
152 t.Errorf("parsed bench set incorrectly, wa …

Showing the top 5 files — 8 more files (51 regions) not shown.

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.