If a nominee for a single office is to be selected and only one candidate of a political party files for that office, or if nominees for two or more offices (constituting a group) are to be selected, and only the number of candidates equal to the number of the positions to be filled file for a political party for said offices, then the appropriate board of elections shall, upon the expiration of the filing period for said office, declare such persons as the nominees or nominee of that party, and the names shall not be printed on the primary ballot, but shall be printed on the general election ballot as candidate for that political party for that office. For the following offices, this declaration shall be made by the county board of elections with which the aspirant filed notice of candidacy: All county offices, State Senators in single-county senatorial districts, and members of the State House of Representatives in single-county representative districts. For all other offices, this declaration shall be made by the State Board.
N.C. Gen. Stat. § 163-110