func NewTestServer(cfg *Config) (*httptest.Server, error) {
	h, err := NewHandler(cfg)
	if err != nil {
		return nil, err
	}

	return httptest.NewServer(h), nil
}
// NewTestServer is a convenience function to start a new httptest.Server to serve local modules during testing.
NewTestServer is a convenience function to start a new httptest.Server to serve local modules during testing.
// NewTestServer is a convenience function to start a new httptest . Server to serve local modules during testing .
func NewTestServer(cfg *Config) (*httptest.Server, error) {
	h, err := NewHandler(cfg)
	if err != nil {
		return nil, err
	}
	return httptest.NewServer(h), nil
}
func NewTestServer ( cfg * Config ) ( * httptest . Server , error ) { h , err := NewHandler ( cfg ) if err != nil { return nil , err } return httptest . NewServer ( h ) , nil }
NewTestServer is a convenience function to start a new httptest.Server to serve local modules during testing.
NewTestServer is a convenience function to start a new httptest . Server to serve local modules during testing .