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

Function _assert_geosearch_result

search_test.go:4330–4337  ·  view source on GitHub ↗
(result *redis.FTSearchResult, expectedDocIDs []string)

Source from the content-addressed store, hash-verified

4328})
4329
4330func _assert_geosearch_result(result *redis.FTSearchResult, expectedDocIDs []string) {
4331 ids := make([]string, len(result.Docs))
4332 for i, doc := range result.Docs {
4333 ids[i] = doc.ID
4334 }
4335 Expect(ids).To(ConsistOf(expectedDocIDs))
4336 Expect(result.Total).To(BeEquivalentTo(len(expectedDocIDs)))
4337}
4338
4339var _ = Describe("RediSearch FT.Config with Resp2 and Resp3", Label("search", "NonRedisEnterprise"), func() {
4340

Callers 1

search_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected