MCPcopy
hub / github.com/redis/go-redis / TestVDim

Function TestVDim

vectorset_commands_test.go:130–138  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

128}
129
130func TestVDim(t *testing.T) {
131 m := &mockCmdable{}
132 c := m.asCmdable()
133 c.VDim(context.Background(), "k")
134 cmd := m.lastCmd.(*IntCmd)
135 if cmd.args[0] != "vdim" || cmd.args[1] != "k" {
136 t.Errorf("unexpected args: %v", cmd.args)
137 }
138}
139
140func TestVEmb(t *testing.T) {
141 m := &mockCmdable{}

Callers

nothing calls this directly

Calls 2

asCmdableMethod · 0.95
VDimMethod · 0.65

Tested by

no test coverage detected