Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testStaticAddr (0.25 sec)

  1. src/net/hosts_test.go

    	defer func(orig string) { hostsFilePath = orig }(hostsFilePath)
    
    	for _, tt := range lookupStaticAddrTests {
    		hostsFilePath = tt.name
    		for _, ent := range tt.ents {
    			testStaticAddr(t, tt.name, ent)
    		}
    	}
    }
    
    func testStaticAddr(t *testing.T, hostsPath string, ent staticHostEntry) {
    	hosts := lookupStaticAddr(ent.in)
    	for i := range ent.out {
    		ent.out[i] = absDomainName(ent.out[i])
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 07:21:38 UTC 2023
    - 5.6K bytes
    - Viewed (0)
Back to top