Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: testing private function in PL/SQL
The only way I can think of is to publish it, test and then remove it from
package spec thus making it private.
-- Vladimir Zakharychev (bob@dpsp-yes.com) http://www.dpsp-yes.com Dynamic PSP(tm) - the first true RAD toolkit for Oracle-based internet applications. All opinions are mine and do not necessarily go in line with those of my employer. "bullseye" <bullseye35_at_deletethefunnies@excite.com> wrote in message news:vGNP7.180668$XA5.28801287_at_typhoon.nyc.rr.com...Received on Thu Dec 06 2001 - 12:44:45 CST
> I want to test a private function in a package.
>
> DECLARE
> (variable) (datatype);
> (variable) (datatype)
> BEGIN
> (variable) := (private function) (identifier or other variable);
> END;
>
> This syntax is not working. I also have a public function in the package
> that uses the same private function. This public function tests fine; it
> gives me the desired result. (The syntax that works is below)
>
> DECLARE
> (variable) (datatype);
> (variable) (datatype)
> BEGIN
> (variable) := (package_name).(public function) (identifier or other
> variable);
> END;
>
>
> How do you test for a private function? I am stumped.
>
>
>
![]() |
![]() |