Formatting the code with https://github.com/mvdan/gofumpt
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -107,21 +107,21 @@ func AssertNoOverlap(CIDRx string, CIDRy string, t *testing.T) {
|
| 107 | 107 |
} |
| 108 | 108 |
|
| 109 | 109 |
func TestNetworkOverlaps(t *testing.T) {
|
| 110 |
- //netY starts at same IP and ends within netX |
|
| 110 |
+ // netY starts at same IP and ends within netX |
|
| 111 | 111 |
AssertOverlap("172.16.0.1/24", "172.16.0.1/25", t)
|
| 112 |
- //netY starts within netX and ends at same IP |
|
| 112 |
+ // netY starts within netX and ends at same IP |
|
| 113 | 113 |
AssertOverlap("172.16.0.1/24", "172.16.0.128/25", t)
|
| 114 |
- //netY starts and ends within netX |
|
| 114 |
+ // netY starts and ends within netX |
|
| 115 | 115 |
AssertOverlap("172.16.0.1/24", "172.16.0.64/25", t)
|
| 116 |
- //netY starts at same IP and ends outside of netX |
|
| 116 |
+ // netY starts at same IP and ends outside of netX |
|
| 117 | 117 |
AssertOverlap("172.16.0.1/24", "172.16.0.1/23", t)
|
| 118 |
- //netY starts before and ends at same IP of netX |
|
| 118 |
+ // netY starts before and ends at same IP of netX |
|
| 119 | 119 |
AssertOverlap("172.16.1.1/24", "172.16.0.1/23", t)
|
| 120 |
- //netY starts before and ends outside of netX |
|
| 120 |
+ // netY starts before and ends outside of netX |
|
| 121 | 121 |
AssertOverlap("172.16.1.1/24", "172.16.0.1/22", t)
|
| 122 |
- //netY starts and ends before netX |
|
| 122 |
+ // netY starts and ends before netX |
|
| 123 | 123 |
AssertNoOverlap("172.16.1.1/25", "172.16.0.1/24", t)
|
| 124 |
- //netX starts and ends before netY |
|
| 124 |
+ // netX starts and ends before netY |
|
| 125 | 125 |
AssertNoOverlap("172.16.1.1/25", "172.16.2.1/24", t)
|
| 126 | 126 |
} |
| 127 | 127 |
|