Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testServeIndexHtmlFS (0.18 sec)

  1. src/net/http/fs_test.go

    				}
    				if s := string(b); s != want {
    					t.Errorf("for path %q got %q, want %q", path, s, want)
    				}
    				res.Body.Close()
    			}
    		})
    	}
    }
    
    func TestServeIndexHtmlFS(t *testing.T) { run(t, testServeIndexHtmlFS) }
    func testServeIndexHtmlFS(t *testing.T, mode testMode) {
    	const want = "index.html says hello\n"
    	ts := newClientServerTest(t, mode, FileServer(Dir("."))).ts
    	defer ts.Close()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
Back to top