redirect_msgp_test.go — fiber Source File
Architecture documentation for redirect_msgp_test.go, a go file in the fiber codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 677ddde0_a2ad_46ea_88ea_878d89b3a3b2["redirect_msgp_test.go"] c0b86961_3ef1_0168_52fc_98627566ed27["bytes"] 677ddde0_a2ad_46ea_88ea_878d89b3a3b2 --> c0b86961_3ef1_0168_52fc_98627566ed27 style 677ddde0_a2ad_46ea_88ea_878d89b3a3b2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// Code generated by github.com/tinylib/msgp DO NOT EDIT.
package fiber
import (
"bytes"
"testing"
"github.com/tinylib/msgp/msgp"
)
func TestMarshalUnmarshalredirectionMsg(t *testing.T) {
v := redirectionMsg{}
bts, err := v.MarshalMsg(nil)
if err != nil {
t.Fatal(err)
}
left, err := v.UnmarshalMsg(bts)
if err != nil {
t.Fatal(err)
}
if len(left) > 0 {
t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
}
left, err = msgp.Skip(bts)
if err != nil {
t.Fatal(err)
}
if len(left) > 0 {
t.Errorf("%d bytes left over after Skip(): %q", len(left), left)
}
}
func BenchmarkMarshalMsgredirectionMsg(b *testing.B) {
v := redirectionMsg{}
b.ReportAllocs()
b.ResetTimer()
for i := 0; i < b.N; i++ {
v.MarshalMsg(nil)
}
}
func BenchmarkAppendMsgredirectionMsg(b *testing.B) {
v := redirectionMsg{}
bts := make([]byte, 0, v.Msgsize())
bts, _ = v.MarshalMsg(bts[0:0])
b.SetBytes(int64(len(bts)))
b.ReportAllocs()
b.ResetTimer()
for i := 0; i < b.N; i++ {
bts, _ = v.MarshalMsg(bts[0:0])
}
}
func BenchmarkUnmarshalredirectionMsg(b *testing.B) {
v := redirectionMsg{}
bts, _ := v.MarshalMsg(nil)
b.ReportAllocs()
b.SetBytes(int64(len(bts)))
// ... (177 more lines)
Domain
Subdomains
Functions
- BenchmarkAppendMsgredirectionMsg()
- BenchmarkAppendMsgredirectionMsgs()
- BenchmarkDecoderedirectionMsg()
- BenchmarkDecoderedirectionMsgs()
- BenchmarkEncoderedirectionMsg()
- BenchmarkEncoderedirectionMsgs()
- BenchmarkMarshalMsgredirectionMsg()
- BenchmarkMarshalMsgredirectionMsgs()
- BenchmarkUnmarshalredirectionMsg()
- BenchmarkUnmarshalredirectionMsgs()
- TestEncodeDecoderedirectionMsg()
- TestEncodeDecoderedirectionMsgs()
- TestMarshalUnmarshalredirectionMsg()
- TestMarshalUnmarshalredirectionMsgs()
Classes
Dependencies
- bytes
Source
Frequently Asked Questions
What does redirect_msgp_test.go do?
redirect_msgp_test.go is a source file in the fiber codebase, written in go. It belongs to the FiberCore domain, Routing subdomain.
What functions are defined in redirect_msgp_test.go?
redirect_msgp_test.go defines 14 function(s): BenchmarkAppendMsgredirectionMsg, BenchmarkAppendMsgredirectionMsgs, BenchmarkDecoderedirectionMsg, BenchmarkDecoderedirectionMsgs, BenchmarkEncoderedirectionMsg, BenchmarkEncoderedirectionMsgs, BenchmarkMarshalMsgredirectionMsg, BenchmarkMarshalMsgredirectionMsgs, BenchmarkUnmarshalredirectionMsg, BenchmarkUnmarshalredirectionMsgs, and 4 more.
What does redirect_msgp_test.go depend on?
redirect_msgp_test.go imports 1 module(s): bytes.
Where is redirect_msgp_test.go in the architecture?
redirect_msgp_test.go is located at redirect_msgp_test.go (domain: FiberCore, subdomain: Routing).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free