FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql-python/test.py at master · balfroim/codeql-python · GitHub
balfroim
codeql-python
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql-python
/
test.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (13 loc) · 297 Bytes
Breadcrumbs
codeql-python
/
test.py
Copy path
File metadata and controls
17 lines (13 loc) · 297 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import
codeql
def
test_basic
():
db
=
codeql
.
Database
.
from_cpp
(
'int main() { return 0; }'
)
res
=
db
.
query
(
'''
select "Test"
'''
)
assert
res
[
1
][
0
]
==
"Test"
def
test
():
test_basic
()
if
__name__
==
'__main__'
:
test
()
Back
|
FazBrowse Home
|
New Git URL