Skip to content

Commit

Permalink
fix: use assert.Equal to compare ctx (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra authored Aug 24, 2023
1 parent 01f9c63 commit 4f5ca5d
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion funcs/base64_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestCreateBase64Funcs(t *testing.T) {
fmap := CreateBase64Funcs(ctx)
actual := fmap["base64"].(func() interface{})

assert.Same(t, ctx, actual().(*Base64Funcs).ctx)
assert.Equal(t, ctx, actual().(*Base64Funcs).ctx)
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion funcs/coll_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestCreateCollFuncs(t *testing.T) {
fmap := CreateCollFuncs(ctx)
actual := fmap["coll"].(func() interface{})

assert.Same(t, ctx, actual().(*CollFuncs).ctx)
assert.Equal(t, ctx, actual().(*CollFuncs).ctx)
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion funcs/conv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestCreateConvFuncs(t *testing.T) {
fmap := CreateConvFuncs(ctx)
actual := fmap["conv"].(func() interface{})

assert.Same(t, ctx, actual().(*ConvFuncs).ctx)
assert.Equal(t, ctx, actual().(*ConvFuncs).ctx)
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion funcs/crypto_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TestCreateCryptoFuncs(t *testing.T) {
fmap := CreateCryptoFuncs(ctx)
actual := fmap["crypto"].(func() interface{})

assert.Same(t, ctx, actual().(*CryptoFuncs).ctx)
assert.Equal(t, ctx, actual().(*CryptoFuncs).ctx)
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion funcs/data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestCreateDataFuncs(t *testing.T) {
fmap := CreateDataFuncs(ctx)
actual := fmap["data"].(func() interface{})

assert.Same(t, ctx, actual().(*DataFuncs).ctx)
assert.Equal(t, ctx, actual().(*DataFuncs).ctx)
})
}
}
2 changes: 1 addition & 1 deletion funcs/filepath_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestCreateFilePathFuncs(t *testing.T) {
fmap := CreateFilePathFuncs(ctx)
actual := fmap["filepath"].(func() interface{})

assert.Same(t, ctx, actual().(*FilePathFuncs).ctx)
assert.Equal(t, ctx, actual().(*FilePathFuncs).ctx)
})
}
}
2 changes: 1 addition & 1 deletion funcs/math_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestCreateMathFuncs(t *testing.T) {
fmap := CreateMathFuncs(ctx)
actual := fmap["math"].(func() interface{})

assert.Same(t, ctx, actual().(*MathFuncs).ctx)
assert.Equal(t, ctx, actual().(*MathFuncs).ctx)
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion funcs/path_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestCreatePathFuncs(t *testing.T) {
fmap := CreatePathFuncs(ctx)
actual := fmap["path"].(func() interface{})

assert.Same(t, ctx, actual().(*PathFuncs).ctx)
assert.Equal(t, ctx, actual().(*PathFuncs).ctx)
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion funcs/random_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestCreateRandomFuncs(t *testing.T) {
fmap := CreateRandomFuncs(ctx)
actual := fmap["random"].(func() interface{})

assert.Same(t, ctx, actual().(*RandomFuncs).ctx)
assert.Equal(t, ctx, actual().(*RandomFuncs).ctx)
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion funcs/regexp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestCreateReFuncs(t *testing.T) {
fmap := CreateReFuncs(ctx)
actual := fmap["regexp"].(func() interface{})

assert.Same(t, ctx, actual().(*ReFuncs).ctx)
assert.Equal(t, ctx, actual().(*ReFuncs).ctx)
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion funcs/strings_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestCreateStringFuncs(t *testing.T) {
fmap := CreateStringFuncs(ctx)
actual := fmap["strings"].(func() interface{})

assert.Same(t, ctx, actual().(*StringFuncs).ctx)
assert.Equal(t, ctx, actual().(*StringFuncs).ctx)
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion funcs/test_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestCreateTestFuncs(t *testing.T) {
fmap := CreateTestFuncs(ctx)
actual := fmap["test"].(func() interface{})

assert.Same(t, ctx, actual().(*TestFuncs).ctx)
assert.Equal(t, ctx, actual().(*TestFuncs).ctx)
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion funcs/time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func TestCreateTimeFuncs(t *testing.T) {
fmap := CreateTimeFuncs(ctx)
actual := fmap["time"].(func() interface{})

assert.Same(t, ctx, actual().(*TimeFuncs).ctx)
assert.Equal(t, ctx, actual().(*TimeFuncs).ctx)
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion funcs/uuid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestCreateUUIDFuncs(t *testing.T) {
fmap := CreateUUIDFuncs(ctx)
actual := fmap["uuid"].(func() interface{})

assert.Same(t, ctx, actual().(*UUIDFuncs).ctx)
assert.Equal(t, ctx, actual().(*UUIDFuncs).ctx)
})
}
}
Expand Down

0 comments on commit 4f5ca5d

Please sign in to comment.