mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-21 08:15:23 -04:00
[PR #242] [MERGED] test: add unit tests for langfuse context and noop observer #261
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/vxcontrol/pentagi/pull/242
Author: @mason5052
Created: 4/8/2026
Status: ✅ Merged
Merged: 4/11/2026
Merged by: @asdek
Base:
main← Head:test/langfuse-context-noop-coverage📝 Commits (2)
cb9e46btest: add unit tests for langfuse context and noop observer357e8aftest: add edge case tests for noop observer branch coverage📊 Changes
2 files changed (+228 additions, -0 deletions)
View changed files
➕
backend/pkg/observability/langfuse/context_test.go(+63 -0)➕
backend/pkg/observability/langfuse/noop_test.go(+165 -0)📄 Description
Summary
context.go(observation context put/get/nesting)noop.go(noop observer used as default fallback when Langfuse is not configured)Test Coverage
context_test.go (3 tests):
noop_test.go (9 tests):
Test Plan
go test ./pkg/observability/langfuse/ -v -count=1passes (12/12 new tests)go vet ./pkg/observability/langfuse/passest.Parallel()converter_test.go🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.