diff options
| author | Joey Jiao <quic_jiangenj@quicinc.com> | 2024-05-15 15:54:48 +0800 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-09-05 08:31:53 +0000 |
| commit | cc20438302bdafe6d4e1b1373a94515cd5a3ccb6 (patch) | |
| tree | c07ec6d8fb995b6f5897014ebab7a68acef1c8f4 /syz-manager | |
| parent | dfbe2ed44f34f8bdabc5ca598387d7543fb9591b (diff) | |
all: rename html functions to meaningful ones
Diffstat (limited to 'syz-manager')
| -rw-r--r-- | syz-manager/http.go | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/syz-manager/http.go b/syz-manager/http.go index 7c01b9ca5..288d043fc 100644 --- a/syz-manager/http.go +++ b/syz-manager/http.go @@ -278,10 +278,10 @@ func (mgr *Manager) httpDownloadCorpus(w http.ResponseWriter, r *http.Request) { const ( DoHTML int = iota - DoHTMLTable + DoSubsystemCover DoModuleCover - DoCSV - DoCSVFiles + DoFuncCover + DoFileCover DoRawCoverFiles DoRawCover DoFilterPCs @@ -305,7 +305,7 @@ func (mgr *Manager) httpSubsystemCover(w http.ResponseWriter, r *http.Request) { mgr.httpCoverFallback(w, r) return } - mgr.httpCoverCover(w, r, DoHTMLTable) + mgr.httpCoverCover(w, r, DoSubsystemCover) } func (mgr *Manager) httpModuleCover(w http.ResponseWriter, r *http.Request) { @@ -407,15 +407,15 @@ func (mgr *Manager) httpCoverCover(w http.ResponseWriter, r *http.Request, funcF Do handlerFuncType contentType string }{ - DoHTML: {rg.DoHTML, ""}, - DoHTMLTable: {rg.DoHTMLTable, ""}, - DoModuleCover: {rg.DoModuleCover, ""}, - DoCSV: {rg.DoCSV, ctTextPlain}, - DoCSVFiles: {rg.DoCSVFiles, ctTextPlain}, - DoRawCoverFiles: {rg.DoRawCoverFiles, ctTextPlain}, - DoRawCover: {rg.DoRawCover, ctTextPlain}, - DoFilterPCs: {rg.DoFilterPCs, ctTextPlain}, - DoCoverJSONL: {rg.DoCoverJSONL, ctApplicationJSON}, + DoHTML: {rg.DoHTML, ""}, + DoSubsystemCover: {rg.DoSubsystemCover, ""}, + DoModuleCover: {rg.DoModuleCover, ""}, + DoFuncCover: {rg.DoFuncCover, ctTextPlain}, + DoFileCover: {rg.DoFileCover, ctTextPlain}, + DoRawCoverFiles: {rg.DoRawCoverFiles, ctTextPlain}, + DoRawCover: {rg.DoRawCover, ctTextPlain}, + DoFilterPCs: {rg.DoFilterPCs, ctTextPlain}, + DoCoverJSONL: {rg.DoCoverJSONL, ctApplicationJSON}, } if ct := flagToFunc[funcFlag].contentType; ct != "" { @@ -458,11 +458,11 @@ func (mgr *Manager) httpCoverFallback(w http.ResponseWriter, r *http.Request) { } func (mgr *Manager) httpFuncCover(w http.ResponseWriter, r *http.Request) { - mgr.httpCoverCover(w, r, DoCSV) + mgr.httpCoverCover(w, r, DoFuncCover) } func (mgr *Manager) httpFileCover(w http.ResponseWriter, r *http.Request) { - mgr.httpCoverCover(w, r, DoCSVFiles) + mgr.httpCoverCover(w, r, DoFileCover) } func (mgr *Manager) httpPrio(w http.ResponseWriter, r *http.Request) { |
