containers / containers/tar-diff

Create unit tests for pkg/tar-patch package

Open
#36 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
66
Forks
27
Avg merge
14d 3h
Merged PRs (30d)
1

Description

The pkg/tar-patch package (~175 lines) handles patch application but has no unit tests.

## Test File to Create

- `pkg/tar-patch/apply_test.go`

## Test Coverage

- Apply() function with various delta operations
- FilesystemDataSource implementation
- Error handling (missing files, corrupted deltas)
- Edge cases (symlinks, hardlinks, sparse files)

## Acceptance Criteria

- All tests passing
- Code coverage >= 80% for pkg/tar-patch

## Dependencies

- Depends on #22 (Go 1.25+ update) - tests should target modern Go version

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.