Skip to content

Commit

Permalink
Snake_case test case names
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Jan 13, 2023
1 parent 5a805d9 commit 3a4c417
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions internal/trie/tracking/deltas_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func Test_Deltas_RecordDeleted(t *testing.T) {
nodeHash common.Hash
expectedDeltas Deltas
}{
"set in empty deltas": {
"set_in_empty_deltas": {
deltas: Deltas{
deletedNodeHashes: map[common.Hash]struct{}{},
},
Expand All @@ -38,7 +38,7 @@ func Test_Deltas_RecordDeleted(t *testing.T) {
deletedNodeHashes: map[common.Hash]struct{}{{1}: {}},
},
},
"set in non empty deltas": {
"set_in_non_empty_deltas": {
deltas: Deltas{
deletedNodeHashes: map[common.Hash]struct{}{{1}: {}},
},
Expand All @@ -49,7 +49,7 @@ func Test_Deltas_RecordDeleted(t *testing.T) {
},
},
},
"override in deltas": {
"override_in_deltas": {
deltas: Deltas{
deletedNodeHashes: map[common.Hash]struct{}{{1}: {}},
},
Expand Down Expand Up @@ -78,8 +78,8 @@ func Test_Deltas_Deleted(t *testing.T) {
deltas Deltas
nodeHashes map[common.Hash]struct{}
}{
"empty deltas": {},
"non empty deltas": {
"empty_deltas": {},
"non_empty_deltas": {
deltas: Deltas{
deletedNodeHashes: map[common.Hash]struct{}{{1}: {}},
},
Expand All @@ -106,7 +106,7 @@ func Test_Deltas_MergeWith(t *testing.T) {
deltasArg DeletedGetter
expectedDeltas Deltas
}{
"merge empty deltas": {
"merge_empty_deltas": {
deltas: Deltas{
deletedNodeHashes: map[common.Hash]struct{}{{1}: {}},
},
Expand All @@ -115,7 +115,7 @@ func Test_Deltas_MergeWith(t *testing.T) {
deletedNodeHashes: map[common.Hash]struct{}{{1}: {}},
},
},
"merge deltas": {
"merge_deltas": {
deltas: Deltas{
deletedNodeHashes: map[common.Hash]struct{}{{1}: {}},
},
Expand Down Expand Up @@ -150,12 +150,12 @@ func Test_Deltas_DeepCopy(t *testing.T) {
deltasOriginal *Deltas
deltasCopy *Deltas
}{
"nil deltas": {},
"empty deltas": {
"nil_deltas": {},
"empty_deltas": {
deltasOriginal: &Deltas{},
deltasCopy: &Deltas{},
},
"filled deltas": {
"filled_deltas": {
deltasOriginal: &Deltas{
deletedNodeHashes: map[common.Hash]struct{}{{1}: {}},
},
Expand Down
2 changes: 1 addition & 1 deletion lib/trie/trie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package trie
import (
"bytes"
"encoding/hex"
reflect "reflect"
"reflect"
"testing"

"github.com/ChainSafe/gossamer/internal/trie/node"
Expand Down

0 comments on commit 3a4c417

Please sign in to comment.