Home / File/ response_msgp_test.go — fiber Source File

response_msgp_test.go — fiber Source File

Architecture documentation for response_msgp_test.go, a go file in the fiber codebase. 1 imports, 0 dependents.

File go FiberCore Adapters 1 imports 7 functions 1 classes

Entity Profile

Dependency Diagram

graph LR
  06ea0821_d2f9_cbc7_86ed_2f6f5fd5fb27["response_msgp_test.go"]
  c0b86961_3ef1_0168_52fc_98627566ed27["bytes"]
  06ea0821_d2f9_cbc7_86ed_2f6f5fd5fb27 --> c0b86961_3ef1_0168_52fc_98627566ed27
  style 06ea0821_d2f9_cbc7_86ed_2f6f5fd5fb27 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// Code generated by github.com/tinylib/msgp DO NOT EDIT.

package idempotency

import (
	"bytes"
	"testing"

	"github.com/tinylib/msgp/msgp"
)

func TestMarshalUnmarshalresponse(t *testing.T) {
	v := response{}
	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 BenchmarkMarshalMsgresponse(b *testing.B) {
	v := response{}
	b.ReportAllocs()
	b.ResetTimer()
	for i := 0; i < b.N; i++ {
		v.MarshalMsg(nil)
	}
}

func BenchmarkAppendMsgresponse(b *testing.B) {
	v := response{}
	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 BenchmarkUnmarshalresponse(b *testing.B) {
	v := response{}
	bts, _ := v.MarshalMsg(nil)
	b.ReportAllocs()
	b.SetBytes(int64(len(bts)))
// ... (64 more lines)

Domain

Subdomains

Classes

Dependencies

  • bytes

Frequently Asked Questions

What does response_msgp_test.go do?
response_msgp_test.go is a source file in the fiber codebase, written in go. It belongs to the FiberCore domain, Adapters subdomain.
What functions are defined in response_msgp_test.go?
response_msgp_test.go defines 7 function(s): BenchmarkAppendMsgresponse, BenchmarkDecoderesponse, BenchmarkEncoderesponse, BenchmarkMarshalMsgresponse, BenchmarkUnmarshalresponse, TestEncodeDecoderesponse, TestMarshalUnmarshalresponse.
What does response_msgp_test.go depend on?
response_msgp_test.go imports 1 module(s): bytes.
Where is response_msgp_test.go in the architecture?
response_msgp_test.go is located at middleware/idempotency/response_msgp_test.go (domain: FiberCore, subdomain: Adapters, directory: middleware/idempotency).

Analyze Your Own Codebase

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

Try Supermodel Free