Commit e4e29e67 authored by unknown's avatar unknown

change asserted reponse folder

parent 37ead382
Pipeline #3341 passed with stage
in 29 seconds
......@@ -14,7 +14,7 @@ class Injector:
return report
def get_c_json_report(self):
with open('../../examples/c/report.json') as f:
with open('../../examples/../tests/api/asserted_response/c/report.json') as f:
report = json.load(f)
return report
......@@ -24,7 +24,7 @@ class Injector:
return report
def get_python_json_report(self):
with open('../../examples/python/report.json') as f:
with open('../../examples/../tests/api/asserted_response/python/report.json') as f:
report = json.load(f)
return report
......@@ -34,7 +34,7 @@ class Injector:
return report
def get_helgrind_json_report(self):
with open('../../examples/helgrind/report.json') as f:
with open('../../examples/../tests/api/asserted_response/helgrind/report.json') as f:
report = json.load(f)
return report
......@@ -44,7 +44,7 @@ class Injector:
return report
def get_java_json_report(self):
with open('../../examples/java/null_division/report.json') as f:
with open('../../examples/../tests/api/asserted_response/java/report.json') as f:
report = json.load(f)
return report
......@@ -54,7 +54,7 @@ class Injector:
return report
def get_valgrind_json_report(self):
with open('../../examples/valgrind/report.json') as f:
with open('../../examples/../tests/api/asserted_response/valgrind/report.json') as f:
report = json.load(f)
return report
......
[
{
"file": "main.c",
"line": "17",
"meaning": "function",
"message": "expected ';' before 'return'",
"to": "5"
},
{
"file": "test.c",
"line": "5",
"meaning": "function",
"message": "expected ';' before '}' token",
"to": "1"
}
]
\ No newline at end of file
[
{
"file": "simple_race.c",
"line": "13",
"meaning": "main",
"message": "Possible data race during read of size 4 at 0x601038 by thread #1\n",
"thread": "1"
},
{
"backtrace": {
"file": "hg_intercepts.c",
"line": "194",
"meaning": "mythread_wrapper",
"message": "This conflicts with a previous write of size 4 by thread #2\n",
"thread": "2"
},
"file": "simple_race.c",
"line": "6",
"meaning": "child_fn",
"message": "This conflicts with a previous write of size 4 by thread #2\n",
"thread": "2"
}
]
\ No newline at end of file
[{"backtrace": {"backtrace": {"backtrace": {"file": "Example.java", "meaning": "Example.baz", "line": "18", "message": "java.lang.ArithmeticException: / by zero", "thread": "main\" "}, "file": "Example.java", "meaning": "Example.bar", "line": "13", "message": "java.lang.ArithmeticException: / by zero", "thread": "main\" "}, "file": "Example.java", "meaning": "Example.foo", "line": "9", "message": "java.lang.ArithmeticException: / by zero", "thread": "main\" "}, "file": "Example.java", "meaning": "Example.main", "line": "5", "message": "java.lang.ArithmeticException: / by zero", "thread": "main\" "}]
\ No newline at end of file
[
{
"backtrace": {
"backtrace": {
"backtrace": {
"file": "main.py",
"line": "10",
"meaning": "baz",
"message": "TypeError: can only concatenate str (not \"int\") to str"
},
"file": "main.py",
"line": "15",
"meaning": "bar",
"message": "TypeError: can only concatenate str (not \"int\") to str"
},
"file": "main.py",
"line": "22",
"meaning": "foo",
"message": "TypeError: can only concatenate str (not \"int\") to str"
},
"file": "main.py",
"line": "32",
"meaning": "<module>",
"message": "TypeError: can only concatenate str (not \"int\") to str"
}
]
\ No newline at end of file
CC=gcc
CFLAGS=-O2 -std=c99 -pedantic -lm
all: example
example: example.o
$(CC) example.o
example.o: example.c
$(CC) -c example.c
[{"backtrace": {"backtrace": {"backtrace": {"meaning": "baz", "file": "example.c", "line": "7", "message": "Invalid write of size 4"}, "meaning": "bar", "file": "example.c", "line": "11", "message": "Invalid write of size 4"}, "meaning": "foo", "file": "example.c", "line": "15", "message": "Invalid write of size 4"}, "meaning": "main", "file": "example.c", "line": "20", "message": "Invalid write of size 4"}]
\ No newline at end of file
......@@ -164,13 +164,12 @@ export default {
this.recursiveSearch(r, editor)
})
if (this.unified_report.length > 0) {
this.registerEvents(editor)
this.styleWidget()
this.visited.push(editorName)
} else {
this.removeDanglingWidgets()
}
this.registerEvents(editor)
this.styleWidget()
this.visited.push(editorName)
// else {
// this.removeDanglingWidgets()
// }
},
/*
* Emit all keywords that will be highlighted in Report component
......@@ -251,7 +250,7 @@ export default {
},
{
line: report.line - 1,
ch: 100
ch: 200
},
{
className: this.colorSet(),
......
......@@ -63,7 +63,7 @@
content-class="bg-grey-3 text-black"
:content-style="$q.dark.isActive ? 'font-size: 13px;' : 'font-size: 13px; border: 1px solid black'"
>
Upload your source codes and report with .txt suffix
Upload your source codes and report with txt | log suffix
</q-tooltip>
</q-icon>
<q-file
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment