* Start abstracting away the ACME provider * Move ACME to interface with sub-package implementations * Addressing comments * Library -> Provider * Missed a couple of Library -> Provider * One more Library -> Provider * remove constants
		
			
				
	
	
		
			16 lines
		
	
	
		
			257 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			257 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package autocert
 | 
						|
 | 
						|
import (
 | 
						|
	"testing"
 | 
						|
)
 | 
						|
 | 
						|
func TestAutocert(t *testing.T) {
 | 
						|
	l := New()
 | 
						|
	if _, ok := l.(*autocertProvider); !ok {
 | 
						|
		t.Error("New() didn't return an autocertProvider")
 | 
						|
	}
 | 
						|
	if _, err := l.NewListener(); err != nil {
 | 
						|
		t.Error(err.Error())
 | 
						|
	}
 | 
						|
}
 |