In order to test injectivity of a module $M$ it suffices to check if every linear map from an arbitrary ideal extends to the ring or not. Similarly in order to check the flatness of a module $M$ it suffices to check whether tensoring with it preserves injectivity of $0 \to I \to R$.
Is there an analogue of these statements for testing projectivity ?
May be if a full analogue is not there in the general case, can we have it if the ring satisfies some conditions like PID/Noetherian-ness ?
Let $N$ be a class of objects in the category of right $R$-modules ($R$ a ring with unity) such that any right $R$-module can be embedded in some module in $N$. (For example, $N$ may be taken the class of injective right $R$-modules.) In testing whether a right module $P$ is projective, it suffices to check that, for any $R$-epimorphism $g : B→C$ where $B$ and $C$ are right $R$-modules, any $R$-homomorphism $h : P→C$ could be lifted to a homomorphism $f : P→B$, i.e. $h=gof$.