mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 04:15:54 +02:00
Typos (#3084)
* comment fix * redundancy * typo nill -> nil * remove extra newline from log
This commit is contained in:
parent
4e09ae2182
commit
a529e66cd8
7 changed files with 12 additions and 12 deletions
|
@ -59,7 +59,7 @@ func TestBaseDbg(t *testing.T) {
|
|||
"base_string": "hello world",
|
||||
"base_int": 42,
|
||||
"base_float": 42.42,
|
||||
"nillvar": &teststruct{},
|
||||
"nilvar": &teststruct{},
|
||||
"base_struct": struct {
|
||||
Foo string
|
||||
Bar int
|
||||
|
@ -79,8 +79,8 @@ func TestBaseDbg(t *testing.T) {
|
|||
//Missing multi parametes function
|
||||
tests := []ExprDbgTest{
|
||||
{
|
||||
Name: "nill deref",
|
||||
Expr: "Upper('1') == '1' && nillvar.Foo == '42'",
|
||||
Name: "nil deref",
|
||||
Expr: "Upper('1') == '1' && nilvar.Foo == '42'",
|
||||
Env: defaultEnv,
|
||||
ExpectedFailRuntime: true,
|
||||
ExpectedOutputs: []OpOutput{
|
||||
|
@ -307,8 +307,8 @@ func TestBaseDbg(t *testing.T) {
|
|||
t.Fatalf("test %s : unexpected compile error : %s", test.Name, err)
|
||||
}
|
||||
}
|
||||
if test.Name == "nill deref" {
|
||||
test.Env["nillvar"] = nil
|
||||
if test.Name == "nil deref" {
|
||||
test.Env["nilvar"] = nil
|
||||
}
|
||||
outdbg, ret, err := RunWithDebug(prog, test.Env, logger)
|
||||
if test.ExpectedFailRuntime {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue