refactor: update HTTP request handling and improve documentation
- Replaced http.NewRequest with http.NewRequestWithContext in client tests for better context management. - Updated method names and comments for clarity, including renaming GetWsdlUrl to GetWsdlURL and StorageUri to StorageURI for consistency. - Enhanced comments across various files to provide clearer descriptions of functionality and ONVIF specifications.
This commit is contained in:
@@ -135,6 +135,7 @@ type AdditionalTest struct {
|
||||
Code string
|
||||
}
|
||||
|
||||
//nolint:funlen // Main function has many statements due to test generation logic
|
||||
func main() {
|
||||
flag.Parse()
|
||||
|
||||
@@ -215,7 +216,7 @@ func main() {
|
||||
|
||||
// Create output file
|
||||
outputFile := filepath.Join(*outputDir, fmt.Sprintf("%s_test.go", strings.ToLower(cameraID)))
|
||||
f, err := os.Create(outputFile)
|
||||
f, err := os.Create(outputFile) //nolint:gosec // Filename is generated from test data, safe
|
||||
if err != nil {
|
||||
log.Fatalf("Failed to create output file: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user