-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Censor refactoring (using maps instead of arrays in blacklist and whitelist) [T657] #208
Conversation
acra-censor/acra-censor_test.go
Outdated
@@ -100,67 +94,53 @@ func testWhitelistTables(t *testing.T, acraCensor *AcraCensor, whitelistHandler | |||
"INSERT INTO Customers (CustomerName, City, Country) VALUES ('Cardinal', 'Stavanger', 'Norway');", | |||
"SELECT EMP_ID, LAST_NAME FROM EMPLOYEE_TBL AS EMPL_TBL WHERE CITY = 'Seattle' ORDER BY EMP_ID;", | |||
} | |||
|
|||
err := whitelistHandler.AddQueries(testQueries) | |||
whitelistHandler.AddQueries(testQueries) | |||
if err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what we check here?
acra-censor/acra-censor_test.go
Outdated
testQuery := "SELECT EMP_ID, LAST_NAME FROM EMPLOYEE, EMPLOYEE_TBL, CUSTOMERS WHERE CITY = 'INDIANAPOLIS' ORDER BY EMP_ID asc;" | ||
|
||
err = whitelistHandler.AddQueries([]string{testQuery}) | ||
whitelistHandler.AddQueries([]string{testQuery}) | ||
if err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
acra-censor/acra-censor_test.go
Outdated
@@ -269,7 +242,7 @@ func TestBlacklistQueries(t *testing.T) { | |||
|
|||
testQuery := "INSERT INTO Customers (CustomerName, City, Country) VALUES ('Cardinal', 'Stavanger', 'Norway');" | |||
|
|||
err = blacklistHandler.AddQueries([]string{testQuery}) | |||
blacklistHandler.AddQueries([]string{testQuery}) | |||
if err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
No description provided.