dpp v0.1.17 (2019-04-24T11:24:49Z)
Dub
Repo
InferTestMode
contract
Calculate if we're in mocking or verifying mode using reflection
template
InferTestMode (
alias
lhs
) {
import
std
.
traits
:
isPointer
;
;
alias
L
=
typeof
(
lhs
)
;
template
isConst
(T)
;
static if
(
!__traits(isRef, lhs) && !isPointer!L
)
enum
InferTestMode
;
static if
(!(
!__traits(isRef, lhs) && !isPointer!L
))
static if
(
isConst!L
)
enum
InferTestMode
;
static if
(!(
!__traits(isRef, lhs) && !isPointer!L
))
static if
(!(
isConst!L
))
enum
InferTestMode
;
}
Members
Aliases
L
alias
L
=
typeof
(
lhs
)
Undocumented in source.
Manifest constants
InferTestMode
enum
InferTestMode
;
Undocumented in source.
InferTestMode
enum
InferTestMode
;
Undocumented in source.
InferTestMode
enum
InferTestMode
;
Undocumented in source.
Templates
isConst
template
isConst
(T)
Undocumented in source.
Meta
Source
See Implementation
contract
modules
aggregates
array
constexpr
functions
inheritance
issues
macro_
member
methods
namespace
operators
templates
typedef_
enums
TestMode
functions
cCode
child
createMockTranslationUnit
createRealTranslationUnit
createTranslationUnit
expect
expectEqual
expectLength
mockTU
mockTuMixin
parse
printChildren
shouldMatch
mixin templates
Contract
createTU
structs
C
CodeURL
ContractFunction
Cpp
MockCursor
MockTU
MockType
Module
TestName
templates
InferTestMode
Calculate if we're in mocking or verifying mode using reflection