Documentation ¶
Index ¶
- type AddErrorer
- type AddManyErrorer
- type AddManyPointerErrorer
- type AnyShouldBer
- type BaseErrorOrCollectionWrapper
- type BaseErrorTypeGetter
- type BaseErrorTyper
- type BaseErrorWrapperCollectionDefiner
- type BaseRawErrCollectionDefiner
- type BasicErrWrapper
- type BasicErrorTyper
- type BasicErrorTyperGetter
- type CategoryNamer
- type CodeTypeNameWithReferencer
- type CodeTypeNamer
- type CompiledBasicErrWrapper
- type CompiledVoidLogger
- type CompleteFailureJsoner
- type CompleteFailurer
- type CompleteSuccessJsoner
- type CompleteSuccesser
- type ConditionalErrorAdder
- type DyanmicLinqer
- type ErrTypeDetailDefiner
- type ErrWrapperLogger
- type ErrorCompleter
- type ErrorStringGetter
- type ExplicitCodeValueNamer
- type FatalTracesVoidLogger
- type FatalVoidLogger
- type FullOrErrorMessageGetter
- type FullStringWithTracesGetter
- type FullStringWithTracesIfGetter
- type FullStringer
- type GenericErrorCompiler
- type GetAsBasicWrapperGetter
- type GetAsBasicWrapperUsingTyperGetter
- type HasCurrentErrorChecker
- type HasReferencesChecker
- type IsErrorsCollected
- type IsNullOrAnyNullChecker
- type IsReferencesEmptyChecker
- type JsonModelAnyGetter
- type LeftShouldBeErrorVerifier
- type LeftShouldBeMessageVerifier
- type MustBeEmptier
- type MustCompleteFailurer
- type MustCompleteSuccesser
- type ReferenceCollectionDefiner
- type Referencer
- type ReferencesCompiledStringGetter
- type ReferencesListGetter
- type ShouldBeChainCollectionDefiner
- type ShouldBeChainer
- type ShouldBeErrorVerifier
- type ShouldBeMessageVerifier
- type ShouldBeMessager
- type StackTracer
- type StringCompiler
- type StringWithoutTyper
- type StringsGetter
- type TypeCodeNameStringer
- type TypeNamer
- type ValueDynamicGetter
- type ValueStringGetter
- type VarNamer
- type VariableValueDynamicGetter
- type VariableValueStringGetter
- type VoidIfLogger
- type VoidLogger
- type VoidTracesLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddErrorer ¶
type AddErrorer interface { internalinterface.AddErrorer }
type AddManyErrorer ¶
type AddManyErrorer interface { internalinterface.AddManyErrorer }
type AddManyPointerErrorer ¶
type AddManyPointerErrorer interface { internalinterface.AddManyPointerErrorer }
type AnyShouldBer ¶ added in v1.3.9
type AnyShouldBer interface { AnyShouldBe( title string, actual, expected interface{}, ) BaseErrorOrCollectionWrapper }
type BaseErrorOrCollectionWrapper ¶ added in v1.2.1
type BaseErrorOrCollectionWrapper interface { internalinterface.BaseErrorOrCollectionWrapper // JsonResultWithoutTraces // // Mostly used for testing cases JsonResultWithoutTraces() *corejson.Result IsCollect(another BaseErrorOrCollectionWrapper) bool IsCollectedAny(anotherItems ...BaseErrorOrCollectionWrapper) bool IsCollectOn(isCollect bool, another BaseErrorOrCollectionWrapper) bool IsEmptyAll(anotherItems ...BaseErrorOrCollectionWrapper) bool GetAsBasicWrapperGetter GetAsBasicWrapperUsingTyperGetter StackTracer coreinterface.ReflectSetter corejson.Jsoner }
type BaseErrorTypeGetter ¶ added in v1.3.1
type BaseErrorTypeGetter interface {
BaseErrorTyper() BaseErrorTyper
}
type BaseErrorTyper ¶
type BaseErrorTyper interface { internalinterface.BaseErrorTyper ExplicitCodeValueNamer CodeTypeNameWithReferencer JsonModelAnyGetter CategoryNamer coreinterface.AllSerializer IsErrorTyperEqual(errTyper BaseErrorTyper) bool }
type BaseErrorWrapperCollectionDefiner ¶
type BaseErrorWrapperCollectionDefiner interface { BaseErrorOrCollectionWrapper internalinterface.BaseErrorWrapperCollectionDefiner // LinesWithoutTraces // // returns lines without traces LinesWithoutTraces() []string CompiledBasicErrWrapper AddErrorUsingBasicType(errType BasicErrorTyper, err error) BaseErrorWrapperCollectionDefiner AddBasicErrWrapper(basicErrWrapper BasicErrWrapper) BaseErrorWrapperCollectionDefiner }
type BaseRawErrCollectionDefiner ¶
type BaseRawErrCollectionDefiner interface { internalinterface.BaseRawErrCollectionDefiner }
type BasicErrWrapper ¶
type BasicErrWrapper interface { internalinterface.BasicErrWrapper BaseErrorOrCollectionWrapper ErrorTypeAsBasicErrorTyper() BasicErrorTyper ReferencesCollection() ReferenceCollectionDefiner coreinterface.ReflectSetter ReferencesListGetter IsBasicErrEqual(another BasicErrWrapper) bool MergeNewErrInf(right BaseErrorOrCollectionWrapper) BaseErrorOrCollectionWrapper MergeNewMessage(newMessage string) BaseErrorOrCollectionWrapper CloneInterface() BasicErrWrapper }
type BasicErrorTyper ¶
type BasicErrorTyper interface { BaseErrorTyper enuminf.BasicEnumer ErrTypeDetailDefiner() ErrTypeDetailDefiner ErrorTypeAsBasicEnum() enuminf.BasicEnumer }
type BasicErrorTyperGetter ¶ added in v1.3.3
type BasicErrorTyperGetter interface {
BasicErrorTyper() BasicErrorTyper
}
type CategoryNamer ¶ added in v1.3.3
type CategoryNamer interface {
CategoryName() string
}
type CodeTypeNameWithReferencer ¶ added in v1.3.3
type CodeTypeNamer ¶ added in v1.2.1
type CodeTypeNamer interface { internalinterface.CodeTypeNamer }
type CompiledBasicErrWrapper ¶ added in v1.2.1
type CompiledBasicErrWrapper interface { CompiledToGenericBasicErrWrapper() BasicErrWrapper CompiledToBasicErrWrapper(errType BasicErrorTyper) BasicErrWrapper CompiledToErrorWithTraces(errType BasicErrorTyper) error }
type CompiledVoidLogger ¶ added in v1.2.1
type CompiledVoidLogger interface { internalinterface.CompiledVoidLogger }
type CompleteFailureJsoner ¶ added in v1.3.10
type CompleteFailurer ¶ added in v1.3.9
type CompleteFailurer interface {
CompleteFailure() BaseErrorOrCollectionWrapper
}
type CompleteSuccessJsoner ¶ added in v1.3.10
type CompleteSuccesser ¶ added in v1.3.9
type CompleteSuccesser interface {
CompleteSuccess() BaseErrorOrCollectionWrapper
}
type ConditionalErrorAdder ¶
type ConditionalErrorAdder interface { internalinterface.ConditionalErrorAdder }
type DyanmicLinqer ¶
type DyanmicLinqer interface { internalinterface.DyanmicLinqer }
type ErrTypeDetailDefiner ¶ added in v1.3.1
type ErrTypeDetailDefiner interface { TypenameString() string TypeMessage() string BaseErrorTypeGetter }
type ErrWrapperLogger ¶ added in v1.2.1
type ErrWrapperLogger interface { internalinterface.CompiledVoidLogger }
type ErrorCompleter ¶ added in v1.3.9
type ErrorCompleter interface { CompleteReceiveError(completionTyper enuminf.CompletionStateTyper) error CompleteUsingErrReceiveError(completionTyper enuminf.CompletionStateTyper) error CompleteSuccesser CompleteFailurer MustCompleteSuccesser MustCompleteFailurer CompleteSuccessJsoner CompleteFailureJsoner Complete(completionTyper enuminf.CompletionStateTyper) BaseErrorOrCollectionWrapper CompleteUsingErr(err error) BaseErrorOrCollectionWrapper CompleteUsingErrWithTitle(title string, err error) BaseErrorOrCollectionWrapper CompleteUsingBaseErrOrCollection(baseErrOrCollection BaseErrorOrCollectionWrapper) BaseErrorOrCollectionWrapper CompleteUsingBasicErrWrapper(basicErrWrapper BasicErrWrapper) BaseErrorOrCollectionWrapper CompleteUsingBaseErrorWrapperCollectionDefiner(baseErrOrCollection BaseErrorWrapperCollectionDefiner) BaseErrorOrCollectionWrapper CompleteUsingBaseRawErrCollectionDefiner(baseErrOrCollection BaseRawErrCollectionDefiner) BaseErrorOrCollectionWrapper }
type ErrorStringGetter ¶ added in v1.2.1
type ErrorStringGetter interface { internalinterface.ErrorStringGetter }
type ExplicitCodeValueNamer ¶ added in v1.3.3
type ExplicitCodeValueNamer interface { // ExplicitCodeValueName // // returns string in format "(Code - #%d) : %s" ExplicitCodeValueName() string }
ExplicitCodeValueNamer
returns string in format "(Code - #%d) : %s"
type FatalTracesVoidLogger ¶ added in v1.2.1
type FatalTracesVoidLogger interface { internalinterface.FatalTracesVoidLogger }
type FatalVoidLogger ¶ added in v1.2.1
type FatalVoidLogger interface { internalinterface.FatalVoidLogger }
type FullOrErrorMessageGetter ¶ added in v1.2.1
type FullOrErrorMessageGetter interface { internalinterface.FullOrErrorMessageGetter }
FullOrErrorMessageGetter
isErrorMessage : true will return only the error or else full string isWithRef : refers to include reference or not
type FullStringWithTracesGetter ¶
type FullStringWithTracesGetter interface { internalinterface.FullStringWithTracesGetter }
type FullStringWithTracesIfGetter ¶
type FullStringWithTracesIfGetter interface { internalinterface.FullStringWithTracesIfGetter }
type FullStringer ¶ added in v1.2.1
type FullStringer interface { internalinterface.FullStringer }
type GenericErrorCompiler ¶ added in v1.3.9
type GenericErrorCompiler interface { BaseErrorTypeGetter CompiledMessage() string JsonString() string Length() int IsEmpty() bool HasAnyItem() bool HasAnyIssues() bool CompileString() string Serialize() ([]byte, error) Format(format string) string CompileError() error corejson.Jsoner ToGenericErr() BaseErrorOrCollectionWrapper MustBeEmptier CompiledVoidLogger fmt.Stringer }
type GetAsBasicWrapperGetter ¶ added in v1.3.12
type GetAsBasicWrapperGetter interface {
GetAsBasicWrapper() BasicErrWrapper
}
type GetAsBasicWrapperUsingTyperGetter ¶ added in v1.3.12
type GetAsBasicWrapperUsingTyperGetter interface {
GetAsBasicWrapperUsingTyper(errorTyper BasicErrorTyper) BasicErrWrapper
}
type HasCurrentErrorChecker ¶ added in v1.2.1
type HasCurrentErrorChecker interface { internalinterface.HasCurrentErrorChecker }
type HasReferencesChecker ¶ added in v1.2.1
type HasReferencesChecker interface { internalinterface.HasReferencesChecker }
type IsErrorsCollected ¶
type IsErrorsCollected interface { internalinterface.IsErrorsCollected }
type IsNullOrAnyNullChecker ¶ added in v1.2.1
type IsNullOrAnyNullChecker interface { internalinterface.IsNullOrAnyNullChecker }
type IsReferencesEmptyChecker ¶ added in v1.2.1
type IsReferencesEmptyChecker interface { internalinterface.IsReferencesEmptyChecker }
type JsonModelAnyGetter ¶ added in v1.3.3
type JsonModelAnyGetter interface {
JsonModelAny() interface{}
}
type LeftShouldBeErrorVerifier ¶ added in v1.3.4
type LeftShouldBeErrorVerifier interface {
ShouldBeError(left, right interface{}) error
}
type LeftShouldBeMessageVerifier ¶ added in v1.3.4
type LeftShouldBeMessageVerifier interface {
ShouldBe(left, right interface{}) string
}
type MustBeEmptier ¶ added in v1.3.9
type MustBeEmptier interface { MustBeSuccess() bool MustBeEmpty() HandleError() }
type MustCompleteFailurer ¶ added in v1.3.9
type MustCompleteFailurer interface {
CompleteFailureMust()
}
type MustCompleteSuccesser ¶ added in v1.3.9
type MustCompleteSuccesser interface {
CompleteSuccessMust()
}
type ReferenceCollectionDefiner ¶ added in v1.3.3
type ReferenceCollectionDefiner interface { ReferencerCollection() []Referencer coreinterface.HasAnyItemChecker coreinterface.IsEmptyChecker coreinterface.LengthGetter coreinterface.CountGetter AddVarVal(varName string, val interface{}) ReferenceCollectionDefiner AddReferencer(ref Referencer) ReferenceCollectionDefiner AddReferences(references ...Referencer) ReferenceCollectionDefiner coreinterface.MapStringAnyGetter coreinterface.MapStringStringGetter coreinterface.AllSerializer corejson.Jsoner StringsGetter fmt.Stringer Compile() string coreinterface.ReflectSetter ReferencesListGetter CloneNewDefiner() ReferenceCollectionDefiner }
type Referencer ¶ added in v1.2.1
type Referencer interface { VarNamer ValueDynamicGetter VariableValueStringGetter VariableValueDynamicGetter ValueStringGetter StringCompiler StringWithoutTyper FullStringer fmt.Stringer corejson.Jsoner coreinterface.AllSerializer IsEqualReferencer(ref Referencer) bool coreinterface.ReflectSetter }
type ReferencesCompiledStringGetter ¶ added in v1.2.1
type ReferencesCompiledStringGetter interface { internalinterface.ReferencesCompiledStringGetter }
type ReferencesListGetter ¶ added in v1.3.12
type ReferencesListGetter interface {
ReferencesList() []Referencer
}
type ShouldBeChainCollectionDefiner ¶ added in v1.3.9
type ShouldBeChainCollectionDefiner interface { GenericErrorCompiler ListShouldBeChainCollectionDefiner() []ShouldBeMessager Strings() []string }
type ShouldBeChainer ¶ added in v1.3.9
type ShouldBeChainer interface { On(isCollect bool) ShouldBeChainer OnString(actual, expected string) ShouldBeChainer OnNull(anyItem interface{}) ShouldBeChainer OnDefined(anyItem interface{}) ShouldBeChainer IsCompleted() bool IsFrozen() bool IsAddPossible() bool Title(title string) ShouldBeChainer JsonerShouldBe( title string, actual, expected corejson.Jsoner, ) ShouldBeChainer JsonerShouldBeDefined( title string, actual corejson.Jsoner, ) ShouldBeChainer IntegerShouldBeDefined( title string, actual int, ) ShouldBeChainer ShouldBeEmptyString( title string, actual string, ) ShouldBeChainer ShouldBeEmptyInteger( title string, actual int, ) ShouldBeChainer ShouldBeEmptyByte( title string, actual int, ) ShouldBeChainer ShouldBeFalse( title string, actual bool, ) ShouldBeChainer ShouldBeTrue( title string, actual bool, ) ShouldBeChainer JsonResultShouldBe( title string, actual, expected *corejson.Result, ) ShouldBeChainer JsonResultShouldBeDefined( title string, actual *corejson.Result, ) ShouldBeChainer JsonResultShouldHaveNoError( title string, actual *corejson.Result, ) ShouldBeChainer JsonResultShouldHaveNoIssuesOrEmpty( title string, actual *corejson.Result, ) ShouldBeChainer IntegerShouldBeGreater( title string, actual, expected int, ) ShouldBeChainer IntegerShouldBeGreaterOrEqual( title string, actual, expected int, ) ShouldBeChainer BytesShouldBe( title string, actual, expected []byte, ) ShouldBeChainer BytesShouldBeDefined( title string, actual []byte, ) ShouldBeChainer TypeShouldBe( title string, actual, expected reflect.Type, ) ShouldBeChainer TypeShouldBeAnyOf( title string, actual reflect.Type, expectedTypes ...reflect.Type, ) ShouldBeChainer ShouldBeSuccess( title string, actual coreinterface.IsSuccessValidator, ) ShouldBeChainer ShouldBeFailed( title string, actual coreinterface.IsSuccessValidator, ) ShouldBeChainer ShouldBeValid( title string, actual coreinterface.IsSuccessValidator, ) ShouldBeChainer PointerShouldBe( title string, actual, expected interface{}, ) ShouldBeChainer IntegerShouldBe( title string, actual, expected int, ) ShouldBeChainer IntegerShouldBeLessThan( title string, actual, expected int, ) ShouldBeChainer IntegerShouldBeCompare( numberCompareTyper enuminf.CompareMethodsTyper, title string, actual, expected int, ) ShouldBeChainer ByteShouldBe( title string, actual, expected byte, ) ShouldBeChainer ChainerShouldBeEmpty( title string, actual ShouldBeChainer, ) ShouldBeChainer LengthShouldBe( title string, actual coreinterface.LengthGetter, expected int, ) ShouldBeChainer ShouldBeHaveItem( title string, actual coreinterface.LengthGetter, ) ShouldBeChainer SimpleEnumShouldBe( title string, actual, expected enuminf.SimpleEnumer, ) ShouldBeChainer BasicEnumShouldBe( title string, actual, expected enuminf.BasicEnumer, ) ShouldBeChainer BasicEnumShouldBeInvalid( title string, actual enuminf.BasicEnumer, ) ShouldBeChainer BasicEnumShouldBeDefined( title string, actual enuminf.BasicEnumer, ) ShouldBeChainer BooleanShouldBe( title string, actual, expected bool, ) ShouldBeChainer MapStringAnyShouldBe( title string, actual, expected map[string]interface{}, ) ShouldBeChainer Error() errorShouldBer ShouldBe( title string, actual, expected interface{}, ) ShouldBeChainer ShouldBeOn( isCollect bool, title string, actual, expected interface{}, ) ShouldBeChainer ShouldBeRegardlessOn( isCollect bool, title string, actual, expected interface{}, ) ShouldBeChainer ShouldBeOption( isRegardless bool, title string, actual, expected interface{}, ) ShouldBeChainer ShouldBeOptionOn( isCollect bool, isRegardless bool, title string, actual, expected interface{}, ) ShouldBeChainer ShouldBeRegardless( title string, actual, expected interface{}, ) ShouldBeChainer ShouldBeUsingFunc( title string, actual, expected interface{}, compareFunc func(actual, expected interface{}) (isMatch bool), ) ShouldBeChainer ShouldBeHaveNoPanicFunc( title string, actual, expected interface{}, recoverPanicCompareFunc func(actual, expected interface{}) (isMatch bool), ) ShouldBeChainer ShouldBeDefined( title string, actual interface{}, ) ShouldBeChainer ManyShouldBeDefined( title string, actualItems ...interface{}, ) ShouldBeChainer ShouldBeNull( title string, actual interface{}, ) ShouldBeChainer PointerShouldBeNull( title string, actual interface{}, ) ShouldBeChainer Equal(actual, expected interface{}) ShouldBeChainer EqualFunc( actual, expected interface{}, compareFunc func(actual, expected interface{}) (isMatch bool), ) ShouldBeChainer EqualOption(isRegardless bool, actual, expected interface{}) ShouldBeChainer EqualRegardless(actual, expected interface{}) ShouldBeChainer Checker(title string) checkerShouldBer Str(title string) stringShouldBer Strs(title string) stringsShouldBer Compile() BaseErrorOrCollectionWrapper CompileErr() error MustBeEmptier GenericErrorCompiler HandleError() CompileString() string CompileJson() string IsCollected() bool Append(anotherItems ...ShouldBeChainer) ShouldBeChainer AppendNew(anotherItems ...ShouldBeChainer) ShouldBeChainer LogOnIssues() (logged string) Strings() []string }
type ShouldBeErrorVerifier ¶ added in v1.3.4
type ShouldBeErrorVerifier interface {
ShouldBeError(right interface{}) error
}
type ShouldBeMessageVerifier ¶ added in v1.3.4
type ShouldBeMessageVerifier interface {
ShouldBe(right interface{}) string
}
type ShouldBeMessager ¶ added in v1.3.9
type ShouldBeMessager interface { Title() string Actual() interface{} Expected() interface{} GenericErrorCompiler IsTitleEqual(title string) bool IsEqualInterface(right ShouldBeMessager) bool CloneNewInterface() ShouldBeMessager ConcatNewInterface(another ShouldBeMessager) ShouldBeMessager }
type StackTracer ¶ added in v1.3.13
type StackTracer interface { StackTracesJsonResult() *corejson.Result StackTraces() string // NewStackTraces // // returns new code stack (only) traces string NewStackTraces(stackSkip int) string // NewDefaultStackTraces // // returns new code stack (only) traces string NewDefaultStackTraces() string // NewStackTracesJsonResult // // returns new code stack (only) traces json NewStackTracesJsonResult(stackSkip int) *corejson.Result // NewDefaultStackTracesJsonResult // // returns new code stack (only) traces json NewDefaultStackTracesJsonResult() *corejson.Result }
type StringCompiler ¶ added in v1.2.1
type StringCompiler interface { internalinterface.StringCompiler }
type StringWithoutTyper ¶ added in v1.2.1
type StringWithoutTyper interface {
StringWithoutType() string
}
type StringsGetter ¶ added in v1.3.3
type StringsGetter interface {
Strings() []string
}
type TypeCodeNameStringer ¶ added in v1.2.1
type TypeCodeNameStringer interface { internalinterface.TypeCodeNameStringer }
type TypeNamer ¶ added in v1.2.1
type TypeNamer interface { internalinterface.TypeNamer }
type ValueDynamicGetter ¶ added in v1.2.1
type ValueDynamicGetter interface {
ValueDynamic() interface{}
}
type ValueStringGetter ¶ added in v1.2.1
type ValueStringGetter interface {
ValueString() string
}
type VariableValueDynamicGetter ¶ added in v1.2.1
type VariableValueDynamicGetter interface {
VariableValueDynamic() (varName string, value interface{})
}
type VariableValueStringGetter ¶ added in v1.2.1
type VariableValueStringGetter interface {
VariableValueString() (varName, value string)
}
type VoidIfLogger ¶ added in v1.2.1
type VoidIfLogger interface { internalinterface.VoidIfLogger }
type VoidLogger ¶ added in v1.2.1
type VoidLogger interface { internalinterface.VoidLogger }
type VoidTracesLogger ¶ added in v1.2.1
type VoidTracesLogger interface { internalinterface.VoidTracesLogger }
Click to show internal directories.
Click to hide internal directories.