MCPcopy Create free account
hub / github.com/EsperoTech/yaade / setPathVariable

Method setPathVariable

server/src/main/java/com/postman/collection/Url.java:562–571  ·  view source on GitHub ↗

@param varPath

(Property varPath)

Source from the content-addressed store, hash-verified

560 * @param varPath
561 */
562 public void setPathVariable(Property varPath) {
563 if (this.variable == null) {
564 this.variable = new PropertyList<Property>();
565 }
566 for (Property curVar : this.variable) {
567 if (curVar.getKey().equals(varPath.getKey())) {
568 this.variable.set(this.variable.indexOf(curVar), varPath);
569 }
570 }
571 }
572
573
574 /**

Callers

nothing calls this directly

Calls 4

indexOfMethod · 0.80
equalsMethod · 0.45
getKeyMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected