forked from dailymotion/allure-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinterfaces.go
33 lines (28 loc) · 812 Bytes
/
interfaces.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
package allure
type hasOptions interface {
addLabel(key string, value string)
addDescription(description string)
addParameter(name string, value interface{})
addParameters(parameters map[string]interface{})
addName(name string)
addAction(action func())
addReason(reason string)
}
// This interface provides functions required to manipulate children step records, used in the result object and
// step object for recursive handling
type hasSteps interface {
getSteps() []stepObject
addStep(step stepObject)
}
type hasStatus interface {
setStatus(status string)
getStatus() string
}
type hasAttachments interface {
getAttachments() []attachment
addAttachment(attachment attachment)
}
type hasStatusDetails interface {
getStatusDetails() *statusDetails
setStatusDetails(details statusDetails)
}