Skip to main content

dump_test.go

dump_test.go - Overview

This file contains tests for the DUMP and RESTORE commands, verifying that data can be serialized and deserialized correctly. It includes tests for various data types like strings, integers, JSON, sets, byte arrays and sorted sets.

Detailed Documentation

TestDumpRestore

  • Purpose: Tests the DUMP and RESTORE commands for string, integer, JSON, Set, bytearray, and sorted set values.
  • Parameters:
    • t: *testing.T - Testing context.
  • Returns: None

TestDumpRestoreBF

  • Purpose: Tests DUMP and RESTORE commands for bloom filter.
  • Parameters:
    • t: *testing.T - Testing context.
  • Returns: None

TestDumpRestoreCMS

  • Purpose: Tests the DUMP and RESTORE commands for Count-Min Sketch data.
  • Parameters:
    • t: *testing.T - Testing context.
  • Returns: None

TestDumpRestoreDeque

  • Purpose: Tests the DUMP and RESTORE commands for deque data.
  • Parameters:
    • t: *testing.T - Testing context.
  • Returns: None

Getting Started Relevance