mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-21 08:15:23 -04:00
[PR #241] [MERGED] test: add unit tests for langfuse helpers package #262
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/241
Author: @mason5052
Created: 4/8/2026
Status: ✅ Merged
Merged: 4/8/2026
Merged by: @asdek
Base:
main← Head:test/langfuse-helpers-coverage📝 Commits (2)
cad6b01test: add unit tests for langfuse helpers package161b122test: add getCurrentTimeRef test and strengthen ModelParameters assertions📊 Changes
1 file changed (+533 additions, -0 deletions)
View changed files
➕
backend/pkg/observability/langfuse/helpers_test.go(+533 -0)📄 Description
Summary
helpers.gopackagemergeMaps,ObservationLevel,GenerationUsageUnit,GenerationUsage,ModelParameters,GetLangchainModelParameters, trace/span ID generation, time helpers, and pointer helperst.Parallel()andtt := ttloop variable shadowingTest Coverage
Test Plan
go test ./pkg/observability/langfuse/... -v -count=1passesgo vet ./pkg/observability/langfuse/...passest.Parallel()withtt := ttloop variable shadowingconverter_test.go🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.