function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion


Could you please help me with the class:

public class MyController {

   public String getName() {
   return 'MyController';


There is a warning message at the first line of the class (I use Eclipse).

what warning do you get?
That the lines 3 and 4 are not covered
I  used first test example from "Visual force developer guide": 
I think you must be making some mistake in writing..i tried the code on my didnt show any errors/warnings...
Thank's for your attantion. I'll try to re setup Eclipse.

Not covered sounds like you have asked Eclipse to run the unit tests for that class and there aren't any.


Are you seeing this error when saving or when testing?