Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: testing private function in PL/SQL

Re: testing private function in PL/SQL

From: Vladimir M. Zakharychev <bob_at_dpsp-yes.com>
Date: Thu, 6 Dec 2001 21:44:45 +0300
Message-ID: <9uoe49$5qp$1@babylon.agtel.net>


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...

> 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.
>
>
>
Received on Thu Dec 06 2001 - 12:44:45 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US