Repository: raviqqe/muffet
Pull request #236 (2022-08-01 21:49:40)

Refactor

codecov[bot]: # [Codecov](https://codecov.io/gh/raviqqe/muffet/pull/236?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yota+Toyama) Report
> Merging [#236](https://codecov.io/gh/raviqqe/muffet/pull/236?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yota+Toyama) (98df84a) into [main](https://codecov.io/gh/raviqqe/muffet/commit/e602e5d5f4e374c7d0c9c72fa454759b20439567?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yota+Toyama) (e602e5d) will **not change** coverage.
> The diff coverage is `n/a`.

```diff
@@           Coverage Diff           @@
##             main     #236   +/-   ##
=======================================
  Coverage   86.18%   86.18%           
=======================================
  Files          26       26           
  Lines         456      456           
=======================================
  Hits          393      393           
  Misses         46       46           
  Partials       17       17           
```


| [Impacted Files](https://codecov.io/gh/raviqqe/muffet/pull/236?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yota+Toyama) | Coverage Δ | |
|---|---|---|
| [arguments.go](https://codecov.io/gh/raviqqe/muffet/pull/236/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yota+Toyama#diff-YXJndW1lbnRzLmdv) | `94.59% <ø> (ø)` | |

Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Yota+Toyama).


Patch:
diff --git a/arguments.go b/arguments.go
index 41301fd..8d58fbb 100644
--- a/arguments.go
+++ b/arguments.go
@@ -13,7 +13,7 @@ type arguments struct {
 	BufferSize            int      `short:"b" long:"buffer-size" value-name:"<size>" default:"4096" description:"HTTP response buffer size in bytes"`
 	MaxConnections        int      `short:"c" long:"max-connections" value-name:"<count>" default:"512" description:"Maximum number of HTTP connections"`
 	MaxConnectionsPerHost int      `long:"max-connections-per-host" value-name:"<count>" default:"512" description:"Maximum number of HTTP connections per host"`
-	MaxResponseBodySize   int      `long:"max-response-body-size" value-name:"<size>" default:"10000000" description:"Maximum web page body size to read"`
+	MaxResponseBodySize   int      `long:"max-response-body-size" value-name:"<size>" default:"10000000" description:"Maximum response body size to read"`
 	RawExcludedPatterns   []string `short:"e" long:"exclude" value-name:"<pattern>..." description:"Exclude URLs matched with given regular expressions"`
 	RawIncludedPatterns   []string `short:"i" long:"include" value-name:"<pattern>..." description:"Include URLs matched with given regular expressions"`
 	FollowRobotsTxt       bool     `long:"follow-robots-txt" description:"Follow robots.txt when scraping pages"`


Test patch:
diff --git a/.snapshots/TestHelp b/.snapshots/TestHelp
index e5f031b..0bd8923 100644
--- a/.snapshots/TestHelp
+++ b/.snapshots/TestHelp
@@ -8,7 +8,7 @@ Application Options:
                                             (default: 512)
       --max-connections-per-host=<count>    Maximum number of HTTP connections
                                             per host (default: 512)
-      --max-response-body-size=<size>       Maximum web page body size to read
+      --max-response-body-size=<size>       Maximum response body size to read
                                             (default: 10000000)
   -e, --exclude=<pattern>...                Exclude URLs matched with given
                                             regular expressions