mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-07 08:02:42 +08:00
change: format
This commit is contained in:
@@ -1 +1 @@
|
||||
v5.0.0-beta-2506201936
|
||||
v5.0.0-beta-2506211542
|
||||
|
||||
25
report.go
25
report.go
@@ -369,7 +369,7 @@ func (g *HTMLReportGenerator) calculateTotalActions() int {
|
||||
func (g *HTMLReportGenerator) calculateTotalSubActions() int {
|
||||
return g.iterateTestData(func(action *ActionResult) int {
|
||||
total := 0
|
||||
// Count sub-actions from planning results
|
||||
// Count sub-actions from start_to_goal results
|
||||
if action.Plannings != nil {
|
||||
for _, planning := range action.Plannings {
|
||||
if planning.SubActions != nil {
|
||||
@@ -377,6 +377,7 @@ func (g *HTMLReportGenerator) calculateTotalSubActions() int {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// Count other actions
|
||||
total += 1
|
||||
}
|
||||
return total
|
||||
@@ -965,10 +966,6 @@ const htmlTemplate = `<!DOCTYPE html>
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
.action-content {
|
||||
display: block;
|
||||
}
|
||||
@@ -1017,8 +1014,6 @@ const htmlTemplate = `<!DOCTYPE html>
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.planning-three-columns {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
@@ -1206,8 +1201,6 @@ const htmlTemplate = `<!DOCTYPE html>
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.request-item-compact {
|
||||
background: #ffffff;
|
||||
border: 1px solid #e9ecef;
|
||||
@@ -1319,8 +1312,6 @@ const htmlTemplate = `<!DOCTYPE html>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
.action-details {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -1366,8 +1357,6 @@ const htmlTemplate = `<!DOCTYPE html>
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.arguments {
|
||||
background: #f8f9fa;
|
||||
border: 1px solid #dee2e6;
|
||||
@@ -1378,8 +1367,6 @@ const htmlTemplate = `<!DOCTYPE html>
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.screenshots-section {
|
||||
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
|
||||
border: 2px solid #28a745;
|
||||
@@ -1973,8 +1960,6 @@ const htmlTemplate = `<!DOCTYPE html>
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.logs-header {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
@@ -1991,8 +1976,6 @@ const htmlTemplate = `<!DOCTYPE html>
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.screenshots-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 10px;
|
||||
@@ -2106,8 +2089,6 @@ const htmlTemplate = `<!DOCTYPE html>
|
||||
margin-top: 15px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -2201,8 +2182,6 @@ const htmlTemplate = `<!DOCTYPE html>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="test-cases">
|
||||
{{range $caseIndex, $testCase := .Details}}
|
||||
<div class="test-case">
|
||||
|
||||
Reference in New Issue
Block a user