Skip to content

test(cmd/gf): enhance integration tests for gen pb command#4644

Merged
gqcn merged 1 commit intogogf:masterfrom
lingcoder:test/genpb-enhanced-tests
Jan 21, 2026
Merged

test(cmd/gf): enhance integration tests for gen pb command#4644
gqcn merged 1 commit intogogf:masterfrom
lingcoder:test/genpb-enhanced-tests

Conversation

@lingcoder
Copy link
Contributor

Summary

  • Add 2 new integration test cases for gf gen pb command
  • TestGenPb_MultipleTags: tests multiple validation tags (v:required, v:#Id > 0, v:email) and dc tags
  • TestGenPb_NestedMessage: tests nested message structures with various tag types

Test Data

  • Add testdata/genpb/multiple_tags.proto - proto file with multiple tag annotations
  • Add testdata/genpb/nested_message.proto - proto file with nested message structures

Test Plan

  • Run go test -v -run "TestGenPb" ./... - all 4 tests pass (2 existing + 2 new)

Add 2 new test cases for gen pb command:
- TestGenPb_MultipleTags: tests multiple validation tags and dc tags
- TestGenPb_NestedMessage: tests nested message structures with tags

Also add corresponding proto test data files:
- testdata/genpb/multiple_tags.proto
- testdata/genpb/nested_message.proto
@gqcn gqcn merged commit 626fc62 into gogf:master Jan 21, 2026
18 checks passed
@lingcoder lingcoder deleted the test/genpb-enhanced-tests branch February 28, 2026 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants