Parcourir la source

[1808] editorial fixes: redundant space; space after comma, long lines, indent.

JINMEI Tatuya il y a 13 ans
Parent
commit
5419a73a9e

+ 2 - 2
src/lib/datasrc/memory_datasrc.cc

@@ -1309,8 +1309,8 @@ struct InMemoryZoneFinder::InMemoryZoneFinderImpl {
                                           rename));
             }
         }
-        // No exact match or CNAME. This is NXRRSET case.If with DNSSEC query, 
-        // get the NSEC RRSets,returns with result code NXRRSET.
+        // No exact match or CNAME. This is NXRRSET case. If with DNSSEC query,
+        // get the NSEC RRset, returns with result code NXRRSET.
         if (zone_data_->nsec_signed_) {
             found = node->getData()->find(RRType::NSEC());
             if (found != node->getData()->end()) {

+ 5 - 4
src/lib/datasrc/tests/memory_datasrc_unittest.cc

@@ -1010,13 +1010,14 @@ InMemoryZoneFinderTest::findCheck(ZoneFinder::FindResultFlags expected_flags) {
 }
 
 // Test if NSEC works
-TEST_F(InMemoryZoneFinderTest,NSEC4NXRRSET) {
+TEST_F(InMemoryZoneFinderTest, NSEC4NXRRSET) {
     findTest(origin_, RRType::TXT(), ZoneFinder::NXRRSET, true,
-            ConstRRsetPtr());
-    
+             ConstRRsetPtr());
+
     EXPECT_NO_THROW(EXPECT_EQ(SUCCESS, zone_finder_.add(rr_nsec_)));
     findTest(origin_, RRType::A(), ZoneFinder::NXRRSET, true,
-            rr_nsec_,ZoneFinder::RESULT_NSEC_SIGNED,NULL,ZoneFinder::FIND_DNSSEC);
+             rr_nsec_, ZoneFinder::RESULT_NSEC_SIGNED, NULL,
+             ZoneFinder::FIND_DNSSEC);
 }
 
 TEST_F(InMemoryZoneFinderTest, find) {