Merge pull request #20573 from taosdata/test/TD-23120-MAIN

test: add tools to detect the validity of ASSERT
This commit is contained in:
Hui Li 2023-03-24 10:31:32 +08:00 committed by GitHub
commit 3115265158
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -28,10 +28,10 @@ import os
NO_FOUND = 0 # not found assert or ASSERT
FOUND_OK = 1 # found ASSERT and valid usage
FOUND_NOIF = 2 # found ASSERT but no if like ASSERT(...)
FOUND_LOWER = 3 # found assert write with lower letters
FOUND_LOWER = 3 # found assert write with system assert
FOUND_HAVENOT = 4 # found ASSERT have if but have not like if(!ASSERT)
code_strs = ["not found", "valid", "found but no if", "lower assert","found but have not"]
code_strs = ["not found", "valid", "found but no if", "system assert","found but have not"]
#