File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -237,14 +237,7 @@ cargo test --verbose --all-features
237237
238238#### Formatting
239239``` bash
240- # Check formatting
241- cargo fmt --all -- --check
242-
243- # Format code
244240cargo fmt --all
245- ```
246241
247- #### Linting
248- ``` bash
249242cargo clippy --all-targets --all-features -- -D warnings
250- ```
243+ ```
Original file line number Diff line number Diff line change 55class Gocache (BaseProvider ):
66 tags : List [str ] = ["cdn" ]
77 short_description : str = "GoCache"
8- long_description : str = (
9- "A Brazilian content delivery network provider offering CDN services."
10- )
8+ long_description : str = "A Brazilian content delivery network provider offering CDN services."
119
1210 _ips_url = "https://gocache.com.br/ips"
13- cidrs : List [str ] = [
14- "52.67.255.165/32" ,
15- "170.82.175.0/24" ,
16- "187.16.245.192/29" ,
17- "200.189.173.48/28" ,
18- "200.98.28.70/32" ,
19- "187.85.159.176/29" ,
20- "170.84.29.208/29" ,
21- "34.95.168.58/32" ,
22- "140.82.27.226/32" ,
23- "45.77.97.241/32" ,
24- "207.246.123.237/32" ,
25- "207.148.26.195/32" ,
26- "186.211.161.0/29" ,
27- "34.95.213.225/32" ,
28- "34.95.209.169/32" ,
29- "35.247.222.78/32" ,
30- "34.95.253.129/32" ,
31- "34.95.148.131/32" ,
32- "34.95.164.249/32" ,
33- "129.159.48.87/32" ,
34- "200.25.56.64/28" ,
35- "186.211.188.192/28" ,
36- "200.25.49.64/26" ,
37- "150.230.84.126/32" ,
38- "144.22.216.139/32" ,
39- "170.82.172.0/22" ,
40- ]
4111
4212 def fetch_cidrs (self ):
4313 response = self .request (self ._ips_url )
Original file line number Diff line number Diff line change @@ -69,15 +69,15 @@ mod tests {
6969 path. push ( "debug" ) ;
7070 path. push ( "cloudcheck" ) ;
7171 let bin_path = path. to_string_lossy ( ) . to_string ( ) ;
72-
72+
7373 if !std:: path:: Path :: new ( & bin_path) . exists ( ) {
7474 let status = Command :: new ( "cargo" )
7575 . args ( [ "build" , "--bin" , "cloudcheck" ] )
7676 . status ( )
7777 . expect ( "Failed to run cargo build" ) ;
7878 assert ! ( status. success( ) , "Failed to build cloudcheck binary" ) ;
7979 }
80-
80+
8181 bin_path
8282 } ) ;
8383 let mut cmd = Command :: new ( bin_path) ;
You can’t perform that action at this time.
0 commit comments