vendredi 29 novembre 2019

What does non - testable mean in this code example?

I need to analyze a code after playing a code and see if I have full coverage. Some part of the report is shown below:

    game->errorCode = ERROR_NO_MEMORY;                      
    #pragma RVS justification( "COV_STATEMENTS", "not testable");                       
}                       
else {                      
    /* Initialize platform */       
    game->errorCode = platformInit(game);
    if (game->errorCode == ERROR_NONE) {            
        /* If platform was correctly initialized, start the game */     
        startGame(game);        
    } else {                
        #pragma RVS justification( "COV_MCDC", "1:game->errorCode == ERROR_NONE", "not testable");
        #pragma RVS justification( "COV_DECISIONS", "not testable");                
    }

What does it mean when they say "not testable"? Is it a part of code that cannot be covered? And if so why?

Aucun commentaire:

Enregistrer un commentaire