File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
# Fuzz-Testing
2
2
3
- The upcoming 1.18 release of the golang compiler/toolset has integrated
4
- support for fuzz-testing.
3
+ The 1.18 release of the golang compiler/toolset has integrated support for
4
+ fuzz-testing.
5
5
6
6
Fuzz-testing is basically magical and involves generating new inputs "randomly"
7
7
and running test-cases with those inputs.
@@ -31,4 +31,4 @@ our configuration-file parser like so:
31
31
ok github.com/skx/rss2email/configfile 301.135s
32
32
33
33
34
- You'll note that I've added ` -parellel =1 ` to the test, because otherwise my desktop system becomes unresponsive while the testing is going on.
34
+ You'll note that I've added ` -parallel =1 ` to the test, because otherwise my desktop system becomes unresponsive while the testing is going on.
Original file line number Diff line number Diff line change @@ -110,9 +110,9 @@ func (p *Processor) ProcessFeeds(recipients []string) []error {
110
110
// a bucket for each Feed URL, and then store the
111
111
// URLs we've seen with a random value.
112
112
//
113
- err : = p .dbHandle .Update (func (tx * bbolt.Tx ) error {
114
- _ , err := tx .CreateBucketIfNotExists ([]byte (entry .URL ))
115
- if err != nil {
113
+ err = p .dbHandle .Update (func (tx * bbolt.Tx ) error {
114
+ _ , err2 := tx .CreateBucketIfNotExists ([]byte (entry .URL ))
115
+ if err2 != nil {
116
116
return fmt .Errorf ("create bucket failed: %s" , err )
117
117
}
118
118
return nil
@@ -143,8 +143,8 @@ func (p *Processor) ProcessFeeds(recipients []string) []error {
143
143
// will apply rate-limiting if we make too many consecutive
144
144
// requests in a short period of time.
145
145
host := ""
146
- u , err := url .Parse (entry .URL )
147
- if err == nil {
146
+ u , err2 := url .Parse (entry .URL )
147
+ if err2 == nil {
148
148
host = u .Host
149
149
}
150
150
You can’t perform that action at this time.
0 commit comments