Skip to main content

zset_test.go

zset_test.go - Overview

This file contains tests for sorted set commands such as ZPOPMIN, ZCOUNT, ZADD, and ZRANGE.

Detailed Documentation

TestZPOPMIN(t *testing.T)

  • Purpose: Tests the functionality of the ZPOPMIN command.
  • Parameters:
    • t: *testing.T - The testing object.
  • Returns: None.

TestZCOUNT(t *testing.T)

  • Purpose: Tests the functionality of the ZCOUNT command.
  • Parameters:
    • t: *testing.T - The testing object.
  • Returns: None.

TestZADD(t *testing.T)

  • Purpose: Tests the functionality of the ZADD command, including various options like XX, NX, GT, LT, INCR, and CH.
  • Parameters:
    • t: *testing.T - The testing object.
  • Returns: None.

TestZRANGE(t *testing.T)

  • Purpose: Tests the functionality of the ZRANGE command.
  • Parameters:
    • t: *testing.T - The testing object.
  • Returns: None.