Is there a way to access private plsql procedures for testing purposes?

后端 未结 4 1809
悲&欢浪女
悲&欢浪女 2021-01-31 11:14

I\'m working on a project with a lot of plsql code and would like to add more specific unit-tests to our codebase. Some of the procedures/functions I like to test aren\'t in the

4条回答
  •  深忆病人
    2021-01-31 11:39

    As @Robert said, it shouldn't be possible to access anything that is declared only in the package body outside of that package. Furthermore, creating a "special" spec for the purpose of running unit tests may not work either: if the body contains forward declarations (statements like those in the spec, usually found at the beginning of the body), then the "special" spec will conflict with those declarations and the package won't compile.

提交回复
热议问题