MCPcopy Index your code
hub / github.com/semaphoreui/semaphore / String

Method String

db/Integration.go:172–197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170}
171
172func (matcher *IntegrationMatcher) String() string {
173 var builder strings.Builder
174 // ID:1234 body/json key == value on Extractor: 1234
175 builder.WriteString("ID:" + strconv.Itoa(matcher.ID) + " " + string(matcher.MatchType))
176
177 if matcher.MatchType == IntegrationMatchBody {
178 builder.WriteString("/" + string(matcher.BodyDataType))
179 }
180
181 builder.WriteString(" " + matcher.Key + " ")
182
183 switch matcher.Method {
184 case IntegrationMatchMethodEquals:
185 builder.WriteString("==")
186 case IntegrationMatchMethodUnEquals:
187 builder.WriteString("!=")
188 case IntegrationMatchMethodContains:
189 builder.WriteString(" contains ")
190 default:
191
192 }
193
194 builder.WriteString(matcher.Value + ", on Extractor: " + strconv.Itoa(matcher.IntegrationID))
195
196 return builder.String()
197}
198
199func (value *IntegrationExtractValue) String() string {
200 var builder strings.Builder

Calls

no outgoing calls