- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for ExactString (0.12 sec)
-
src/go/constant/value.go
func (x unknownVal) ExactString() string { return x.String() } func (x boolVal) ExactString() string { return x.String() } func (x *stringVal) ExactString() string { return strconv.Quote(x.string()) } func (x int64Val) ExactString() string { return x.String() } func (x intVal) ExactString() string { return x.String() } func (x ratVal) ExactString() string { r := x.val if r.IsInt() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 34K bytes - Viewed (0) -
src/go/types/eval_test.go
if gotStr != typStr { t.Errorf("Eval(%q) got type %s, want %s", expr, gotStr, typStr) return } } // compare values gotStr := "" if gotTv.Value != nil { gotStr = gotTv.Value.ExactString() } if gotStr != valStr { t.Errorf("Eval(%q) got value %s, want %s", expr, gotStr, valStr) } } func TestEvalBasic(t *testing.T) { fset := token.NewFileSet() for _, typ := range Typ[Bool : String+1] {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 19:56:15 UTC 2024 - 8.3K bytes - Viewed (0) -
api/go1.6.txt
pkg go/build, type Package struct, InvalidGoFiles []string pkg go/constant, func ToComplex(Value) Value pkg go/constant, func ToFloat(Value) Value pkg go/constant, func ToInt(Value) Value pkg go/constant, type Value interface, ExactString() string pkg go/types, method (*Package) SetName(string) pkg go/types, type ImportMode int pkg go/types, type ImporterFrom interface { Import, ImportFrom }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 13 23:40:13 UTC 2016 - 12.9K bytes - Viewed (0) -
src/go/constant/value_test.go
for _, test := range stringTests { x := val(test.input) if got := x.String(); got != test.short { t.Errorf("%s: got %q; want %q as short string", test.input, got, test.short) } if got := x.ExactString(); got != test.exact { t.Errorf("%s: got %q; want %q as exact string", test.input, got, test.exact) } } } // ----------------------------------------------------------------------------
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 15.6K bytes - Viewed (0) -
src/go/types/api_test.go
t.Errorf("package %s: got type %s; want %s", name, got, test.typ) continue } // if we have a constant, check that value is correct if tv.Value != nil { if got := tv.Value.ExactString(); got != test.val { t.Errorf("package %s: got value %s; want %s", name, got, test.val) } } else { if test.val != "" { t.Errorf("package %s: no constant found; want %s", name, test.val) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 94.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/api_test.go
t.Errorf("package %s: got type %s; want %s", name, got, test.typ) continue } // if we have a constant, check that value is correct if tv.Value != nil { if got := tv.Value.ExactString(); got != test.val { t.Errorf("package %s: got value %s; want %s", name, got, test.val) } } else { if test.val != "" { t.Errorf("package %s: no constant found; want %s", name, test.val) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 93.3K bytes - Viewed (0)