Skip to content

Commit f5a02a9

Browse files
committed
minor fixes
1 parent 64776a6 commit f5a02a9

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

web-report/src/App.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
import './App.css'
22
import {Dashboard} from "@/components/Dashboard.tsx";
33
import {useEffect, useState} from "react";
4-
import {WebFuzzingReport} from "@/types/GeneratedTypes.tsx";
4+
import {WebFuzzingCommonsReport} from "@/types/GeneratedTypes.tsx";
55
import {LoadingScreen} from "@/components/LoadingScreen.tsx";
66
import {fetchFileContent} from "@/lib/utils";
77
import {ITestFiles} from "@/types/General.tsx";
88

99
function App() {
1010

11-
const [data, setData] = useState<WebFuzzingReport | null>(null);
11+
const [data, setData] = useState<WebFuzzingCommonsReport | null>(null);
1212
const [loading, setLoading] = useState(true);
1313
const [error, setError] = useState<string | null>(null);
1414
const [testFiles, setTestFiles] = useState<ITestFiles[]>([]);
1515

1616
useEffect(() => {
1717
const fetchData = async () => {
1818
try {
19-
const jsonData = await fetchFileContent('./report.json') as WebFuzzingReport;
19+
const jsonData = await fetchFileContent('./report.json') as WebFuzzingCommonsReport;
2020
setData(jsonData);
2121
} catch (error: Error | unknown) {
2222
if (error instanceof Error) {

web-report/src/components/Dashboard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {Endpoints} from "@/pages/Endpoints.tsx";
88
import {TestResults} from "@/pages/TestResults.tsx";
99

1010
import {ScrollArea, ScrollBar} from "@/components/ui/scroll-area.tsx";
11-
import {WebFuzzingReport} from "@/types/GeneratedTypes.tsx";
11+
import {WebFuzzingCommonsReport} from "@/types/GeneratedTypes.tsx";
1212
import {ITestFiles} from "@/types/General.tsx";
1313

1414

@@ -17,7 +17,7 @@ export interface ITestTabs {
1717
}
1818

1919
export interface IDashboard {
20-
data: WebFuzzingReport;
20+
data: WebFuzzingCommonsReport;
2121
test_files: Array<ITestFiles>;
2222
}
2323

web-report/src/pages/Endpoints.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import React, {useState} from "react";
22
import {Accordion} from "@/components/ui/accordion.tsx";
33
import {EndpointAccordion} from "@/components/EndpointAccordion.tsx";
4-
import {WebFuzzingReport} from "@/types/GeneratedTypes.tsx";
4+
import {WebFuzzingCommonsReport} from "@/types/GeneratedTypes.tsx";
55
import {StatusCodeFilters} from "@/components/StatusCodeFilters.tsx";
66

77
interface IProps {
88
addTestTab: (value: string, event: React.MouseEvent<HTMLElement>) => void;
9-
data: WebFuzzingReport
9+
data: WebFuzzingCommonsReport
1010
}
1111

1212
export const Endpoints: React.FC<IProps> = ({addTestTab, data}) => {
1313

14-
const transformJson = (original: WebFuzzingReport) => {
14+
const transformJson = (original: WebFuzzingCommonsReport) => {
1515

1616
const endpointMap = new Map<string, {
1717
endpoint: string,

web-report/src/types/GeneratedTypes.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/**
99
* Schema Definition for Web Fuzzing Commons Reports
1010
*/
11-
export interface WebFuzzingReport {
11+
export interface WebFuzzingCommonsReport {
1212
/**
1313
* The schema version of WFC needed to use to validate and process this document.
1414
*/
@@ -50,7 +50,7 @@ export interface WebFuzzingReport {
5050
}
5151
export interface Faults {
5252
/**
53-
* The total number of potential faults identified in the generated test suites.
53+
* The total number of potential faults identified in the generated test suites. Each fault is uniquely identified with its 'code' category and 'context'. Note that different tests can detect the same fault, and a test case can detect several different faults.
5454
*/
5555
total_number: number;
5656
/**

0 commit comments

Comments
 (0)