Skip to content

change more package names#1

Merged
wistefan merged 2 commits intomainfrom
init
Feb 1, 2023
Merged

change more package names#1
wistefan merged 2 commits intomainfrom
init

Conversation

@wistefan
Copy link
Collaborator

No description provided.

change more package names
@wistefan wistefan added the patch Should be applied for dependency updates and small bugfixes. label Jan 25, 2023
tidy
@wistefan wistefan merged commit 5cdd7d0 into main Feb 1, 2023
wistefan added a commit that referenced this pull request Mar 5, 2026
## Summary

Add 18 new tests across 4 test files to establish a safety net before replacing trustbloc libraries with custom implementations.

### Tests added

- **key_resolver_test.go** (6 tests): `VdrKeyResolver.ResolvePublicKeyFromDID()` with mocked VDR — fragment resolution, bare did:key, VDR failures, key ID mismatch, nil JWK, multi-VDR fallback
- **jwt_verifier_test.go** (4 tests): `TrustBlocValidator.ValidateVC()` — none/combined/jsonLd/baseContext validation modes
- **presentation_parser_test.go** (6 tests): `ClaimsToCredential()` and `ParseWithSdJwt()` — success, missing iss/vct, missing vp/vc, malformed payload
- **trustedissuer_test.go** (5 tests): `parseAttribute()`/`parseAttributes()` — valid base64, invalid base64, invalid JSON, empty, mixed

All 18 new tests pass. Full test suite passes.

## Test plan
- [x] `go test ./verifier/... -v` — all tests pass
- [x] `go test ./... -v` — full suite passes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Stefan Wiedemann <wistefan@googlemail.com>
Reviewed-on: http://localhost:3000/wistefan/verifier/pulls/1
Reviewed-by: wistefan <wistefan@googlemail.com>
Co-authored-by: claude <claude@gitea.com>
Co-committed-by: claude <claude@gitea.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Should be applied for dependency updates and small bugfixes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant