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
PSahuPSahu 

how to fix need 100% code coverage

//
// Generated by JSON2Apex http://json2apex.herokuapp.com/
//

public class Woeid_JSON2Woeid_Apex {

    public class Place {
        public String woeid;
    }

    public class Query {
        public Integer count;
        public String created;
        public String lang;
        public Results results;
    }

    public Query query;

    public class Results {
        public Place place;
    }

    
    public static Woeid_JSON2Woeid_Apex parse(String json) {
        return (Woeid_JSON2Woeid_Apex) System.JSON.deserialize(json, Woeid_JSON2Woeid_Apex.class);
    }

   
}
I am new in apex please tell me how to write test class for 100% code coverage and how to write it's test cases to debug and check our code is 100% correct working.
bob_buzzardbob_buzzard
Here is the documentation on Apex Unit Tests - I'd suggest you read that to understand how to write unit tests.