Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use uint for (no_)expect_ids #8

Merged
merged 1 commit into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions types/examples.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ var (
ExpectError: helpers.BoolPtr(true),
}
ExampleLog = Log{
ExpectIds: []int{123456},
NoExpectIds: []int{123456},
ExpectIds: []uint{123456},
NoExpectIds: []uint{123456},
MatchRegex: `id[:\s"]*123456`,
NoMatchRegex: `id[:\s"]*123456`,
}
Expand Down
4 changes: 2 additions & 2 deletions types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,13 +341,13 @@ type Log struct {
// Expect the given IDs to be contained in the log output.
// examples:
// -value: ExampleLog.ExpectIds
ExpectIds []int `yaml:"expect_ids,omitempty"`
ExpectIds []uint `yaml:"expect_ids,omitempty"`

// description: |
// Expect the given IDs _not_ to be contained in the log output.
// examples:
// - value: ExampleLog.NoExpectIds
NoExpectIds []int `yaml:"no_expect_ids,omitempty"`
NoExpectIds []uint `yaml:"no_expect_ids,omitempty"`

// description: |
// Expect the regular expression to match log content for the current types.
Expand Down
Loading