storage_manager_msgp_test.go — fiber Source File
Architecture documentation for storage_manager_msgp_test.go, a go file in the fiber codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR d2216d20_1a75_1224_49ef_0f4f6b9c1c09["storage_manager_msgp_test.go"] c0b86961_3ef1_0168_52fc_98627566ed27["bytes"] d2216d20_1a75_1224_49ef_0f4f6b9c1c09 --> c0b86961_3ef1_0168_52fc_98627566ed27 style d2216d20_1a75_1224_49ef_0f4f6b9c1c09 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
// Code generated by github.com/tinylib/msgp DO NOT EDIT.
package csrf
import (
"bytes"
"testing"
"github.com/tinylib/msgp/msgp"
)
func TestMarshalUnmarshalitem(t *testing.T) {
v := item{}
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 BenchmarkMarshalMsgitem(b *testing.B) {
v := item{}
b.ReportAllocs()
b.ResetTimer()
for i := 0; i < b.N; i++ {
v.MarshalMsg(nil)
}
}
func BenchmarkAppendMsgitem(b *testing.B) {
v := item{}
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 BenchmarkUnmarshalitem(b *testing.B) {
v := item{}
bts, _ := v.MarshalMsg(nil)
b.ReportAllocs()
b.SetBytes(int64(len(bts)))
// ... (64 more lines)
Domain
Subdomains
Functions
Classes
Dependencies
- bytes
Source
Frequently Asked Questions
What does storage_manager_msgp_test.go do?
storage_manager_msgp_test.go is a source file in the fiber codebase, written in go. It belongs to the FiberMiddleware domain, Security subdomain.
What functions are defined in storage_manager_msgp_test.go?
storage_manager_msgp_test.go defines 7 function(s): BenchmarkAppendMsgitem, BenchmarkDecodeitem, BenchmarkEncodeitem, BenchmarkMarshalMsgitem, BenchmarkUnmarshalitem, TestEncodeDecodeitem, TestMarshalUnmarshalitem.
What does storage_manager_msgp_test.go depend on?
storage_manager_msgp_test.go imports 1 module(s): bytes.
Where is storage_manager_msgp_test.go in the architecture?
storage_manager_msgp_test.go is located at middleware/csrf/storage_manager_msgp_test.go (domain: FiberMiddleware, subdomain: Security, directory: middleware/csrf).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free