Home / File/ validate_test.go — gin Source File

validate_test.go — gin Source File

Architecture documentation for validate_test.go, a go file in the gin codebase. 1 imports, 0 dependents.

File go RequestBinding Validation 1 imports 8 functions

Entity Profile

Dependency Diagram

graph LR
  7e10d9ab_ee22_270a_45bf_aa404c229204["validate_test.go"]
  fefe783b_8987_7aed_66c9_b2860bfc32e7["bytes"]
  7e10d9ab_ee22_270a_45bf_aa404c229204 --> fefe783b_8987_7aed_66c9_b2860bfc32e7
  style 7e10d9ab_ee22_270a_45bf_aa404c229204 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
// Use of this source code is governed by a MIT style
// license that can be found in the LICENSE file.

package binding

import (
	"bytes"
	"testing"
	"time"

	"github.com/go-playground/validator/v10"
	"github.com/stretchr/testify/assert"
	"github.com/stretchr/testify/require"
)

type testInterface interface {
	String() string
}

type substructNoValidation struct {
	IString string
	IInt    int
}

type mapNoValidationSub map[string]substructNoValidation

type structNoValidationValues struct {
	substructNoValidation

	Boolean bool

	Uinteger   uint
	Integer    int
	Integer8   int8
	Integer16  int16
	Integer32  int32
	Integer64  int64
	Uinteger8  uint8
	Uinteger16 uint16
	Uinteger32 uint32
	Uinteger64 uint64

	Float32 float32
	Float64 float64

	String string

	Date time.Time

	Struct        substructNoValidation
	InlinedStruct struct {
		String  []string
		Integer int
	}

	IntSlice           []int
	IntPointerSlice    []*int
	StructPointerSlice []*substructNoValidation
	StructSlice        []substructNoValidation
// ... (194 more lines)

Subdomains

Dependencies

  • bytes

Frequently Asked Questions

What does validate_test.go do?
validate_test.go is a source file in the gin codebase, written in go. It belongs to the RequestBinding domain, Validation subdomain.
What functions are defined in validate_test.go?
validate_test.go defines 8 function(s): TestValidateAndModifyStruct, TestValidateNoValidationPointers, TestValidateNoValidationValues, TestValidatePrimitives, TestValidatorEngine, createNoValidationValues, notOne, toZero.
What does validate_test.go depend on?
validate_test.go imports 1 module(s): bytes.
Where is validate_test.go in the architecture?
validate_test.go is located at binding/validate_test.go (domain: RequestBinding, subdomain: Validation, directory: binding).

Analyze Your Own Codebase

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

Try Supermodel Free