-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathexport_test.go
98 lines (89 loc) · 3.62 KB
/
export_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// Copyright ©2016 The ev3go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package ev3dev
var Prefix string
func init() {
isTesting = true
prefix = "testmount"
Prefix = prefix
// We cannot use poll(2) for waiting on motor state attribute in testing.
canPoll = false
}
var StateIsOK = stateIsOK
type mockDevice struct{}
func (d mockDevice) Path() string { return "path" }
func (d mockDevice) Type() string { return "mock" }
func (d mockDevice) Err() error { return nil }
func (d mockDevice) String() string { return "mock" }
const (
AddressName = address
BinDataName = binData
BatteryTechnologyName = batteryTechnology
BatteryTypeName = batteryType
BinDataFormatName = binDataFormat
BrightnessName = brightness
CommandName = command
CommandsName = commands
CountPerMeterName = countPerMeter
CountPerRotName = countPerRot
CurrentNowName = currentNow
DecimalsName = decimals
DelayOffName = delayOff
DelayOnName = delayOn
DirectName = direct
DriverNameName = driverName
DutyCycleName = dutyCycle
DutyCycleSetpointName = dutyCycleSetpoint
FirmwareVersion = firmwareVersion
FullTravelCountName = fullTravelCount
HoldPIDName = holdPID
HoldPIDkdName = holdPIDkd
HoldPIDkiName = holdPIDki
HoldPIDkpName = holdPIDkp
KdName = kd
KiName = ki
KpName = kp
MaxBrightnessName = maxBrightness
MaxPulseSetpointName = maxPulseSetpoint
MidPulseSetpointName = midPulseSetpoint
MinPulseSetpointName = minPulseSetpoint
MaxSpeedName = maxSpeed
ModeName = mode
ModesName = modes
NumValuesName = numValues
PolarityName = polarity
PollRateName = pollRate
PositionName = position
PositionSetpointName = positionSetpoint
PowerName = power
PowerAutosuspendDelayName = powerAutosuspendDelay
PowerControlName = powerControl
PowerRuntimeActiveTimeName = powerRuntimeActiveTime
PowerRuntimeStatusName = powerRuntimeStatus
PowerRuntimeSuspendedTimeName = powerRuntimeSuspendedTime
RampDownSetpointName = rampDownSetpoint
RampUpSetpointName = rampUpSetpoint
RateSetpointName = rateSetpoint
SetDeviceName = setDevice
SpeedName = speed
SpeedPIDName = speedPID
SpeedPIDkdName = speedPIDkd
SpeedPIDkiName = speedPIDki
SpeedPIDkpName = speedPIDkp
SpeedSetpointName = speedSetpoint
StateName = state
StatusName = status
StopActionName = stopAction
StopActionsName = stopActions
SubsystemName = subsystem
TextValuesName = textValues
TimeSetpointName = timeSetpoint
TriggerName = trigger
UeventName = uevent
UnitsName = units
ValueName = value
VoltageMaxDesignName = voltageMaxDesign
VoltageMinDesignName = voltageMinDesign
VoltageNowName = voltageNow
)