Skip to content

Add unit tests that increase code coverage (Go/Golang/SenML) #3

@x448

Description

@x448

A "good first issue" with two programs at 0% coverage (inherited from cisco/senml).

Code coverage using go test -cover shows:

  • 80.7% for senml.go
  • 0% for senmlCat.go
  • 0% for senmlServer.go

Add unit tests that improve code coverage. If possible, use example data directly from standards docs like RFC 8428 or gathered from sensors (as long as data doesn't violate privacy or laws).

Hint: Tests involving io.Reader or io.Writer can use iotest to increase coverage after the normal path is covered.

Before submitting a pull request, please reply here with your proposed changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions