package jap

import (
	"testing"

	"golang.org/x/net/context"
)

func TestGoogleHandlerPanicsWithoutCID(t *testing.T) {
	defer func() {
		if r := recover(); r == nil {
			t.Error("Expected GoogleLogin to panic if CID missing from context")
		}
	}()
	_ = GoogleLogin(context.Background(), nil)
}

func TestGoogleHandlerDoesNotPanicWithCID(t *testing.T) {
	defer func() {
		if r := recover(); r != nil {
			t.Error("Did not expect GoogleLogin to panic if provided with a CID")
		}
	}()
	_ = GoogleLogin(NewCIDContext(context.Background(), "TESTSID"), nil)
}

package jap

import (
	"testing"

	"golang.org/x/net/context"
)

func TestGoogleHandlerPanicsWithoutCID(t *testing.T) {
	defer func() {
		if r := recover(); r == nil {
			t.Error("Expected GoogleLogin to panic if CID missing from context")
		}
	}()
	_ = GoogleLogin(context.Background(), nil)
}

--- 
+++ 
@@ -14,3 +14,12 @@
 	}()
 	_ = GoogleLogin(context.Background(), nil)
 }
+
+func TestGoogleHandlerDoesNotPanicWithCID(t *testing.T) {
+	defer func() {
+		if r := recover(); r != nil {
+			t.Error("Did not expect GoogleLogin to panic if provided with a CID")
+		}
+	}()
+	_ = GoogleLogin(NewCIDContext(context.Background(), "TESTSID"), nil)
+}
Add negative test for GoogleLogin panic behavior
