Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Create unit tests for pkg/common package

Open Beginner friendly
#37 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
go
Domain
testing

Research direction

Create pkg/common/common_test.go and first inspect the constants and version information in pkg/common. Add tests for the Delta operation constants, header magic bytes validation, and version string format. Run go test ./pkg/common and confirm the listed cases pass; the Go 1.25+ update in #22 is a prerequisite.

Written by the indexing model from the issue text.

Description

The pkg/common package (~14 lines) defines constants and version info but has no unit tests.

Test File to Create

  • pkg/common/common_test.go

Test Coverage

  • Delta operation constants
  • Header magic bytes validation
  • Version string format

Dependencies

  • Depends on #22 (Go 1.25+ update)
Dominant language
Go
Stars
66
Forks
27
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from containers/tar-diff

All issues in containers/tar-diff

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.