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

Function TestConstantEncoderCache

gapis/replay/builder/constant_encoder_test.go:25–32  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

23)
24
25func TestConstantEncoderCache(t *testing.T) {
26 assert := assert.To(t)
27 c := newConstantEncoder(device.Little32)
28
29 addr1 := c.writeValues(value.U32(0x1234), value.S16(-1))
30 addr2 := c.writeValues(value.U32(0x1234), value.S16(-1))
31 assert.For("addr").That(addr1).Equals(addr2)
32}
33
34func TestConstantEncoderAlignment(t *testing.T) {
35 assert := assert.To(t)

Callers

nothing calls this directly

Calls 6

newConstantEncoderFunction · 0.85
writeValuesMethod · 0.80
ThatMethod · 0.80
ForMethod · 0.80
EqualsMethod · 0.65
U32Method · 0.45

Tested by

no test coverage detected