MCPcopy Create free account
hub / github.com/bytebase/bytebase / TestTaskRunLogAttrs

Function TestTaskRunLogAttrs

backend/runner/taskrun/log_context_test.go:14–21  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

12)
13
14func TestTaskRunLogAttrs(t *testing.T) {
15 attrs := taskRunLogAttrs("project-a", 123)
16
17 require.Equal(t, []slog.Attr{
18 slog.String("project", "project-a"),
19 slog.Int64("task_run_id", 123),
20 }, attrs)
21}
22
23func TestTaskRunLogContext(t *testing.T) {
24 var buf bytes.Buffer

Callers

nothing calls this directly

Calls 3

taskRunLogAttrsFunction · 0.85
EqualMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected