Skip to content

gadget: fix discovering of multiple disks when building disk traits

Codecov / codecov/patch failed Oct 3, 2024 in 0s

76.73% of diff hit (target 78.85%)

View this Pull Request on Codecov

76.73% of diff hit (target 78.85%)

Annotations

Check warning on line 592 in gadget/gadget.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

gadget/gadget.go#L592

Added line #L592 was not covered by tests

Check warning on line 615 in gadget/gadget.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

gadget/gadget.go#L607-L615

Added lines #L607 - L615 were not covered by tests

Check warning on line 790 in gadget/gadget.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

gadget/gadget.go#L787-L790

Added lines #L787 - L790 were not covered by tests

Check warning on line 792 in gadget/gadget.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

gadget/gadget.go#L792

Added line #L792 was not covered by tests

Check warning on line 798 in gadget/gadget.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

gadget/gadget.go#L797-L798

Added lines #L797 - L798 were not covered by tests

Check warning on line 806 in gadget/gadget.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

gadget/gadget.go#L805-L806

Added lines #L805 - L806 were not covered by tests

Check warning on line 239 in gadget/install/install.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

gadget/install/install.go#L238-L239

Added lines #L238 - L239 were not covered by tests

Check warning on line 271 in gadget/install/install.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

gadget/install/install.go#L270-L271

Added lines #L270 - L271 were not covered by tests

Check warning on line 359 in gadget/install/install.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

gadget/install/install.go#L358-L359

Added lines #L358 - L359 were not covered by tests

Check warning on line 401 in gadget/install/install.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

gadget/install/install.go#L400-L401

Added lines #L400 - L401 were not covered by tests

Check warning on line 488 in gadget/install/install.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

gadget/install/install.go#L488

Added line #L488 was not covered by tests

Check warning on line 780 in gadget/install/install.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

gadget/install/install.go#L779-L780

Added lines #L779 - L780 were not covered by tests

Check warning on line 881 in gadget/update.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

gadget/update.go#L879-L881

Added lines #L879 - L881 were not covered by tests

Check warning on line 1312 in gadget/update.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

gadget/update.go#L1311-L1312

Added lines #L1311 - L1312 were not covered by tests

Check warning on line 317 in osutil/disks/mockdisk.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

osutil/disks/mockdisk.go#L312-L317

Added lines #L312 - L317 were not covered by tests

Check warning on line 319 in osutil/disks/mockdisk.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

osutil/disks/mockdisk.go#L319

Added line #L319 was not covered by tests

Check warning on line 323 in osutil/disks/mockdisk.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

osutil/disks/mockdisk.go#L323

Added line #L323 was not covered by tests

Check warning on line 327 in osutil/disks/mockdisk.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

osutil/disks/mockdisk.go#L327

Added line #L327 was not covered by tests

Check warning on line 337 in osutil/disks/mockdisk.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

osutil/disks/mockdisk.go#L333-L337

Added lines #L333 - L337 were not covered by tests

Check warning on line 358 in osutil/disks/mockdisk.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

osutil/disks/mockdisk.go#L357-L358

Added lines #L357 - L358 were not covered by tests