MCPcopy Index your code
hub / github.com/maruel/panicparse / TestArgs

Function TestArgs

stack/stack_test.go:231–272  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

229}
230
231func TestArgs(t *testing.T) {
232 t.Parallel()
233 a := Args{
234 Values: []Arg{
235 {Value: 0x4},
236 {Value: 0x7fff671c7118},
237 {Value: 0xffffffff00000080},
238 {},
239 {Value: 0xffffffff0028c1be},
240 {Name: "foo"},
241 {},
242 {},
243 {IsOffsetTooLarge: true},
244 {IsAggregate: true},
245 {IsAggregate: true, Fields: Args{
246 Values: []Arg{{IsAggregate: true, Fields: Args{
247 Values: []Arg{{IsAggregate: true}},
248 }}},
249 }},
250 {IsAggregate: true, Fields: Args{
251 Values: []Arg{{Value: 0x1}, {Value: 0x7fff671c7118}},
252 }},
253 {IsAggregate: true, Fields: Args{
254 Values: []Arg{{IsAggregate: true, Fields: Args{
255 Values: []Arg{{Value: 0x5}}, Elided: true,
256 }}},
257 }},
258 {IsAggregate: true, Fields: Args{Elided: true}},
259 {IsAggregate: true, Fields: Args{
260 Values: []Arg{{IsAggregate: true, Fields: Args{
261 Values: []Arg{{IsOffsetTooLarge: true}, {IsOffsetTooLarge: true}},
262 }}},
263 }},
264 },
265 Elided: true,
266 }
267 compareString(t, "4, 0x7fff671c7118, 0xffffffff00000080, 0, 0xffffffff0028c1be, foo, "+
268 "0, 0, _, {}, {{{}}}, {1, 0x7fff671c7118}, {{5, ...}}, {...}, {{_, _}}, ...", a.String())
269
270 a = Args{Processed: []string{"yo"}}
271 compareString(t, "yo", a.String())
272}
273
274func TestSignature(t *testing.T) {
275 t.Parallel()

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
compareStringFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…