• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

yitsushi / macpot / 4284291729

pending completion
4284291729

Pull #10

github

GitHub
Merge 8169ebedc into be03cc87c
Pull Request #10: Bump github.com/stretchr/testify from 1.8.1 to 1.8.2

180 of 192 relevant lines covered (93.75%)

10.7 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/error.go
1
package macpot
2

3
import "fmt"
4

5
// OutOfBoundError occurs when we try to access an unknown octet.
6
type OutOfBoundError struct {
7
        TargetIndex int
8
}
9

10
func (e OutOfBoundError) Error() string {
2✔
11
        return fmt.Sprintf("unable to set octet %d", e.TargetIndex)
2✔
12
}
2✔
13

14
// OUIError occurs when something goes wrong parsing the provided OUI.
15
type OUIError struct {
16
        Message string
17
}
18

19
func (e OUIError) Error() string {
3✔
20
        return e.Message
3✔
21
}
3✔
22

23
// NICError occurs when something goes wrong parsing the provided NIC.
24
type NICError struct {
25
        Message string
26
}
27

28
func (e NICError) Error() string {
3✔
29
        return e.Message
3✔
30
}
3✔
31

32
// IPv4Error occurs when something goes wrong parsing the provided IPv4.
33
type IPv4Error struct {
34
        Message string
35
}
36

37
func (e IPv4Error) Error() string {
3✔
38
        return e.Message
3✔
39
}
3✔
40

41
// AddressError occurs when something goes wrong parsing the provided Address.
42
type AddressError struct {
43
        Message string
44
}
45

46
func (e AddressError) Error() string {
3✔
47
        return e.Message
3✔
48
}
3✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc