hsetnx_test.go
hsetnx_test.go - Overview
This file contains tests for the HSETNX
command, verifying that it correctly sets the value of a field in a hash only if the field does not already exist.
Detailed Documentation
TestHSETNX
- Purpose: Tests the
HSETNX
command with various valid and invalid inputs. - Parameters:
t
:*testing.T
- Testing context.
- Returns: None