Home / Function/ Test_WithContextCaller() — fiber Function Reference

Test_WithContextCaller() — fiber Function Reference

Architecture documentation for the Test_WithContextCaller() function in default_test.go from the fiber codebase.

Entity Profile

Dependency Diagram

graph TD
  ef108e6d_80c7_4663_1b11_624e309cddb6["Test_WithContextCaller()"]
  a9657611_ab19_70f1_938f_e28c9f9093e5["default_test.go"]
  ef108e6d_80c7_4663_1b11_624e309cddb6 -->|defined in| a9657611_ab19_70f1_938f_e28c9f9093e5
  style ef108e6d_80c7_4663_1b11_624e309cddb6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

log/default_test.go lines 31–45

func Test_WithContextCaller(t *testing.T) {
	logger = &defaultLogger{
		stdlog: log.New(os.Stderr, "", log.Lshortfile),
		depth:  4,
	}

	var w byteSliceWriter
	SetOutput(&w)
	ctx := context.TODO()

	WithContext(ctx).Info("")
	Info("")

	require.Equal(t, "default_test.go:41: [Info] \ndefault_test.go:42: [Info] \n", string(w.b))
}

Domain

Subdomains

Defined In

Frequently Asked Questions

What does Test_WithContextCaller() do?
Test_WithContextCaller() is a function in the fiber codebase, defined in log/default_test.go.
Where is Test_WithContextCaller() defined?
Test_WithContextCaller() is defined in log/default_test.go at line 31.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free