MCPcopy Create free account
hub / github.com/auth0/auth0-cli / TestDetectProject_Flutter

Function TestDetectProject_Flutter

internal/cli/quickstart_detect_test.go:538–548  ·  view source on GitHub ↗

-- DetectProject - Native / Mobile --. Auth0 qs setup --app --type native --framework flutter.

(t *testing.T)

Source from the content-addressed store, hash-verified

536
537// Auth0 qs setup --app --type native --framework flutter.
538func TestDetectProject_Flutter(t *testing.T) {
539 dir := t.TempDir()
540 writeTestFile(t, dir, "pubspec.yaml", "name: my_flutter_app\nflutter:\n sdk: flutter\n")
541 // Android/ present -> native (reliable signal for native intent).
542 mkTestDir(t, dir, "android")
543
544 got := DetectProject(dir)
545 assert.True(t, got.Detected)
546 assert.Equal(t, "flutter", got.Framework)
547 assert.Equal(t, "native", got.Type)
548}
549
550// Auth0 qs setup --app --type native --framework react-native.
551func TestDetectProject_ReactNative(t *testing.T) {

Callers

nothing calls this directly

Calls 3

writeTestFileFunction · 0.85
mkTestDirFunction · 0.85
DetectProjectFunction · 0.85

Tested by

no test coverage detected