bit_test.go
bit_test.go - Overview
This file contains integration tests for bitwise operations in the ironhawk database. It tests commands like SETBIT
, GETBIT
, BITCOUNT
, BITOP
, BITPOS
, BITFIELD
, and BITFIELD_RO
.
Detailed Documentation
TestBitCount(t *testing.T)
Purpose: Tests the SETBIT
, GETBIT
, and BITCOUNT
commands.
Parameters:
t
:*testing.T
- Testing object for running tests.
Returns:
- None
TestBitPos(t *testing.T)
Purpose: Tests the BITPOS
command to find the first bit set to 0 or 1 in a string or integer.
Parameters:
t
:*testing.T
- Testing object for running tests.
Returns:
- None
TestBitfield(t *testing.T)
Purpose: Tests the BITFIELD
command for performing bitfield operations.
Parameters:
t
:*testing.T
- Testing object for running tests.
Returns:
- None
TestBitfieldRO(t *testing.T)
Purpose: Tests the BITFIELD_RO
command for read-only bitfield operations.
Parameters:
t
:*testing.T
- Testing object for running tests.
Returns:
- None