Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Wrong Format of utPLSQL Code Templates #113

Copy link
Copy link
Closed
@PhilippSalvisberg

Description

@PhilippSalvisberg
Issue body actions

Since version 1.2.0 the generated code templates are wrongly formatted. I guess this happend during conversion from Xtend to Java.

ut_body

  • wrong indentation after first comment
  • missing line break before END END [procedure_name];
  • unnecessary line break before END test_[package_name];
CREATE OR REPLACE PACKAGE BODY test_[package_name] IS

   --
-- test
--
PROCEDURE [procedure_name] IS
   l_actual   INTEGER := 0;
   l_expected INTEGER := 1;
BEGIN
   -- populate actual
   -- ...

   -- populate expected
   -- ...

   -- assert
   ut.expect(l_actual).to_equal(l_expected);END [procedure_name];


END test_[package_name];
/

ut_body_proc

missing line break before END END [procedure_name];

--
-- test
--
PROCEDURE [procedure_name] IS
   l_actual   INTEGER := 0;
   l_expected INTEGER := 1;
BEGIN
   -- populate actual
   -- ...

   -- populate expected
   -- ...

   -- assert
   ut.expect(l_actual).to_equal(l_expected);END [procedure_name];

ut_spec

missing indentation of PROCEDURE

CREATE OR REPLACE PACKAGE test_[package_name] IS

   --%suite
   --%suitepath(alltests)

   --%test
PROCEDURE [procedure_name];

END test_[package_name];
/

ut_spec_proc

looks good.

--%test
PROCEDURE [procedure_name];

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.