File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import './App.css'
22import { Dashboard } from "@/components/Dashboard.tsx" ;
33import { useEffect , useState } from "react" ;
4- import { WebFuzzingReport } from "@/types/GeneratedTypes.tsx" ;
4+ import { WebFuzzingCommonsReport } from "@/types/GeneratedTypes.tsx" ;
55import { LoadingScreen } from "@/components/LoadingScreen.tsx" ;
66import { fetchFileContent } from "@/lib/utils" ;
77import { ITestFiles } from "@/types/General.tsx" ;
88
99function 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 ) {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import {Endpoints} from "@/pages/Endpoints.tsx";
88import { TestResults } from "@/pages/TestResults.tsx" ;
99
1010import { ScrollArea , ScrollBar } from "@/components/ui/scroll-area.tsx" ;
11- import { WebFuzzingReport } from "@/types/GeneratedTypes.tsx" ;
11+ import { WebFuzzingCommonsReport } from "@/types/GeneratedTypes.tsx" ;
1212import { ITestFiles } from "@/types/General.tsx" ;
1313
1414
@@ -17,7 +17,7 @@ export interface ITestTabs {
1717}
1818
1919export interface IDashboard {
20- data : WebFuzzingReport ;
20+ data : WebFuzzingCommonsReport ;
2121 test_files : Array < ITestFiles > ;
2222}
2323
Original file line number Diff line number Diff line change 11import React , { useState } from "react" ;
22import { Accordion } from "@/components/ui/accordion.tsx" ;
33import { EndpointAccordion } from "@/components/EndpointAccordion.tsx" ;
4- import { WebFuzzingReport } from "@/types/GeneratedTypes.tsx" ;
4+ import { WebFuzzingCommonsReport } from "@/types/GeneratedTypes.tsx" ;
55import { StatusCodeFilters } from "@/components/StatusCodeFilters.tsx" ;
66
77interface IProps {
88 addTestTab : ( value : string , event : React . MouseEvent < HTMLElement > ) => void ;
9- data : WebFuzzingReport
9+ data : WebFuzzingCommonsReport
1010}
1111
1212export 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 ,
Original file line number Diff line number Diff line change 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}
5151export 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 /**
You can’t perform that action at this time.
0 commit comments