MCPcopy Create free account
hub / github.com/google/gapid / TestInvokeStringFormat

Function TestInvokeStringFormat

core/java/jdbg/jdbg_test.go:78–87  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

76var thread jdwp.ThreadID
77
78func TestInvokeStringFormat(t *testing.T) {
79 assert := assert.To(t)
80 err := jdbg.Do(conn, thread, func(j *jdbg.JDbg) error {
81 res := j.Class("java/lang/String").Call("format", "%s says '%s' %d times",
82 []interface{}{"bob", "hello world", 5}).Get()
83 assert.For("res").That(res).Equals("bob says 'hello world' 5 times")
84 return nil
85 })
86 assert.For("err").That(err).Equals(nil)
87}
88
89func TestInvokeStaticMethod(t *testing.T) {
90 assert := assert.To(t)

Callers

nothing calls this directly

Calls 7

ClassMethod · 0.80
ThatMethod · 0.80
ForMethod · 0.80
DoMethod · 0.65
GetMethod · 0.65
CallMethod · 0.65
EqualsMethod · 0.65

Tested by

no test coverage detected