entc/gen: keep internal feature-flags private (#3832)

This commit is contained in:
Ariel Mashraki
2023-11-16 09:39:27 +02:00
committed by GitHub
parent 77eedb01dd
commit 4640d8e0ec
3 changed files with 6 additions and 27 deletions

View File

@@ -434,18 +434,7 @@ func TestGraph_Gen(t *testing.T) {
Storage: drivers[0],
Templates: []*Template{external, skipped},
IDType: &field.TypeInfo{Type: field.TypeInt},
Features: []Feature{
FeaturePrivacy,
FeatureIntercept,
FeatureEntQL,
FeatureNamedEdges,
FeatureSnapshot,
FeatureSchemaConfig,
FeatureLock,
FeatureModifier,
FeatureExecQuery,
FeatureUpsert,
},
Features: AllFeatures,
}, schemas...)
require.NoError(err)
require.NotNil(graph)
@@ -493,18 +482,7 @@ func TestGraph_Gen(t *testing.T) {
Storage: drivers[0],
Templates: []*Template{external, skipped},
IDType: &field.TypeInfo{Type: field.TypeInt},
Features: []Feature{
FeaturePrivacy,
FeatureIntercept,
FeatureEntQL,
FeatureNamedEdges,
FeatureSnapshot,
FeatureSchemaConfig,
FeatureLock,
FeatureModifier,
FeatureExecQuery,
FeatureUpsert,
},
Features: AllFeatures,
}, schemas...)
require.NoError(err)
require.NotNil(graph)