Skip to content

feat: meta query tests#506

Merged
droot merged 6 commits into
GoogleCloudPlatform:mainfrom
ShubyM:feat/meta-query-tests
Aug 26, 2025
Merged

feat: meta query tests#506
droot merged 6 commits into
GoogleCloudPlatform:mainfrom
ShubyM:feat/meta-query-tests

Conversation

@ShubyM

@ShubyM ShubyM commented Aug 21, 2025

Copy link
Copy Markdown
Collaborator

Introduces mocks auto generated by gomock and unit testing of handleMetaQuery

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
a := tt.expectations(t)
ans, handled, err := a.handleMetaQuery(ctx, tt.query)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember discussing if we can bring the test driver to closer to how UIs interact with agent. Are we planning to do that ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was planning on making a separate PR for driving the agent in the same way the UI does. I wanted to isolate this PR to introduce mocking and unit testing the handleMetaQuery function

Comment thread makefile
generate:
go generate ./internal/mocks

verify-mocks:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should add CI Job like we have for other operations in a follow up. Ask gemini to do it :)

@droot droot merged commit 668a758 into GoogleCloudPlatform:main Aug 26, 2025
6 checks passed
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