@@ -2,9 +2,10 @@ package bikeymap
22
33import (
44 "fmt"
5- "github.com/aeimer/go-multikeymap/container"
65 "sync"
76 "testing"
7+
8+ "github.com/aeimer/go-multikeymap/container"
89)
910
1011func ExampleNewBiKeyMap () {
@@ -67,7 +68,7 @@ func TestBiKeyMap_SetDuplicateKeys(t *testing.T) {
6768func TestBiKeyMap_DeleteByKeyA (t * testing.T ) {
6869 bm := NewBiKeyMap [string , int , string ]()
6970
70- bm .Set ("keyA1" , 1 , "value1" )
71+ _ = bm .Set ("keyA1" , 1 , "value1" )
7172 err := bm .DeleteByKeyA ("keyA1" )
7273 if err != nil {
7374 t .Fatalf ("unexpected error: %v" , err )
@@ -87,7 +88,7 @@ func TestBiKeyMap_DeleteByKeyA(t *testing.T) {
8788func TestBiKeyMap_DeleteByKeyB (t * testing.T ) {
8889 bm := NewBiKeyMap [string , int , string ]()
8990
90- bm .Set ("keyA1" , 1 , "value1" )
91+ _ = bm .Set ("keyA1" , 1 , "value1" )
9192 err := bm .DeleteByKeyB (1 )
9293 if err != nil {
9394 t .Fatalf ("unexpected error: %v" , err )
@@ -111,7 +112,7 @@ func TestBiKeyMap_EmptyAndSize(t *testing.T) {
111112 t .Error ("expected map to be empty" )
112113 }
113114
114- bm .Set ("keyA1" , 1 , "value1" )
115+ _ = bm .Set ("keyA1" , 1 , "value1" )
115116 if bm .Empty () {
116117 t .Error ("expected map to not be empty" )
117118 }
@@ -124,8 +125,8 @@ func TestBiKeyMap_EmptyAndSize(t *testing.T) {
124125func TestBiKeyMap_Clear (t * testing.T ) {
125126 bm := NewBiKeyMap [string , int , string ]()
126127
127- bm .Set ("keyA1" , 1 , "value1" )
128- bm .Set ("keyA2" , 2 , "value2" )
128+ _ = bm .Set ("keyA1" , 1 , "value1" )
129+ _ = bm .Set ("keyA2" , 2 , "value2" )
129130 bm .Clear ()
130131
131132 if ! bm .Empty () {
@@ -140,8 +141,8 @@ func TestBiKeyMap_Clear(t *testing.T) {
140141func TestBiKeyMap_Values (t * testing.T ) {
141142 bm := NewBiKeyMap [string , int , string ]()
142143
143- bm .Set ("keyA1" , 1 , "value1" )
144- bm .Set ("keyA2" , 2 , "value2" )
144+ _ = bm .Set ("keyA1" , 1 , "value1" )
145+ _ = bm .Set ("keyA2" , 2 , "value2" )
145146
146147 values := bm .Values ()
147148 if len (values ) != 2 {
0 commit comments