test_class.declarator: formatter = new DefaultOptionFormatter()
test_class.original_string: TfOptionFormatter formatter = new DefaultOptionFormatter();
test_class.type: TfOptionFormatter
test_class.var_name: formatter
test_class.file: tf-build-tools/tf-cmd-api/src/test/java/com/deliveredtechnologies/terraform/api/converters/DefaultOptionFormatterTest.java
test_class.identifier: DefaultOptionFormatterTest
test_case.body: @Test
    public void convertKeyValueOption() throws TerraformException {
      String format = "-lock-timeout=";
      String value = "10s";
  
      Assert.assertEquals(formatter.convert(format, value), "-lock-timeout=10s ");
    }
test_case.class_method_signature: DefaultOptionFormatterTest.convertKeyValueOption()
test_case.full_signature: @Test public void convertKeyValueOption()
test_case.identifier: convertKeyValueOption
test_case.invocations: assertEquals convert
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void convertKeyValueOption()
focal_class.file: tf-build-tools/tf-cmd-api/src/main/java/com/deliveredtechnologies/terraform/api/converters/DefaultOptionFormatter.java
focal_class.identifier: DefaultOptionFormatter
focal_class.interfaces: implements TfOptionFormatter
focal_class.class_method_signature: DefaultOptionFormatter.convert(String format, Object value)
focal_class.full_signature: @Override public String convert(String format, Object value)
focal_class.identifier: convert
focal_class.modifiers: @Override public
focal_class.parameters: (String format, Object value)
focal_class.return: String
focal_class.signature: String convert(String format, Object value)
focal_method.body: @Override
    public String convert(String format, Object value) {
  
      if (format.contains("=")) {
        return String.format("%s%s ", format, value);
      } else if (format.equals("%s")) {
        return String.format(format + " ", value);
      } else {
        return String.format("%s ", format);
      }
    }
focal_method.class_method_signature: DefaultOptionFormatter.convert(String format, Object value)
focal_method.full_signature: @Override public String convert(String format, Object value)
focal_method.identifier: convert
focal_method.invocations: contains format equals format format
focal_method.modifiers: @Override public
focal_method.parameters: (String format, Object value)
focal_method.return: String
focal_method.signature: String convert(String format, Object value)