Replace source-string regression tests with behavioral tests (idle_reporting_regression_test.go) #26
Labels
No labels
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
finding
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
bug
doc
duplicate
enhancement
help wanted
invalid
question
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
IUS/xr-invoiced#26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found during review of #24.
cmd/xr-invoiced/idle_reporting_regression_test.goreads Go source files (main.go,internal/scanner/scanner.go) and usesstrings.Containsto assert on literal fragments likeReportProcessed: true,Source: "initial", andlogger = logger.With("mailbox", mailbox).Problems:
This repo already drives real IMAP behavior with
imapmemserverin other tests. Replace these with behavior tests that:scan=idlefor every processed UID;ScanAlland assertscan=initialis emitted;runMailbox's log records have amailboxattr.At minimum, if these stay as deliberate sentinels, add a comment explaining what real test should replace them.
Refs: PR #24
Related commit:
2305c33. The current regression test is still source-string based, so the behavioral-test refactor described here is not yet done.