Skip to content

Commit

Permalink
Don't test spoken forms for secret scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
pokey committed Oct 17, 2023
1 parent 0ac11f9 commit 0358863
Show file tree
Hide file tree
Showing 28 changed files with 84 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ import { SpokenFormMap, SpokenFormMapEntry } from "../SpokenFormMap";
const spokenFormMap = mapValues(defaultSpokenFormInfo, (entry) =>
mapValues(
entry,
({ defaultSpokenForms }): SpokenFormMapEntry => ({
spokenForms: defaultSpokenForms,
({ defaultSpokenForms, isSecret }): SpokenFormMapEntry => ({
spokenForms: isSecret ? [] : defaultSpokenForms,
isCustom: false,
defaultSpokenForms,
requiresTalonUpdate: false,
isSecret: false,
isSecret,
}),
),
) as SpokenFormMap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ command:
- type: primitive
modifier: {type: containingScope, scopeType: string}
mark: {type: decoratedSymbol, symbolColor: default, character: e}
spokenFormError: >-
simple scope type type with id string; this is a secret spoken form currently
only for internal experimentation
initialState:
documentContents: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ command:
mark: {type: decoratedSymbol, symbolColor: default, character: e}
excludeStart: false
excludeEnd: false
spokenFormError: >-
simple scope type type with id string; this is a secret spoken form currently
only for internal experimentation
initialState:
documentContents: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ command:
mark: {type: decoratedSymbol, symbolColor: default, character: h}
- type: primitive
mark: {type: decoratedSymbol, symbolColor: default, character: e}
spokenFormError: >-
simple scope type type with id string; this is a secret spoken form currently
only for internal experimentation
initialState:
documentContents: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ command:
mark: {type: decoratedSymbol, symbolColor: default, character: e}
excludeStart: false
excludeEnd: false
spokenFormError: >-
simple scope type type with id string; this is a secret spoken form currently
only for internal experimentation
initialState:
documentContents: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ command:
- type: containingScope
scopeType: {type: switchStatementSubject}
usePrePhraseSnapshot: true
spokenFormError: >-
simple scope type type with id switchStatementSubject; this is a secret spoken
form currently only for internal experimentation
initialState:
documentContents: |
int main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ command:
- type: containingScope
scopeType: {type: switchStatementSubject}
usePrePhraseSnapshot: false
spokenFormError: >-
simple scope type type with id switchStatementSubject; this is a secret spoken
form currently only for internal experimentation
initialState:
documentContents: |
int main() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ command:
targets:
- type: primitive
modifier: {type: containingScope, scopeType: string}
spokenFormError: >-
simple scope type type with id string; this is a secret spoken form currently
only for internal experimentation
initialState:
documentContents: |
char* a = "hello world";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ command:
- type: containingScope
scopeType: {type: switchStatementSubject}
usePrePhraseSnapshot: true
spokenFormError: >-
simple scope type type with id switchStatementSubject; this is a secret spoken
form currently only for internal experimentation
initialState:
documentContents: |-
switch (aaa) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ command:
- type: containingScope
scopeType: {type: switchStatementSubject}
usePrePhraseSnapshot: false
spokenFormError: >-
simple scope type type with id switchStatementSubject; this is a secret spoken
form currently only for internal experimentation
initialState:
documentContents: |-
switch (aaa + 1) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ command:
targets:
- type: primitive
modifier: {type: containingScope, scopeType: string, includeSiblings: false}
spokenFormError: >-
simple scope type type with id string; this is a secret spoken form currently
only for internal experimentation
initialState:
documentContents: x := "hello world"
selections:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ command:
scopeType: {type: switchStatementSubject}
usePrePhraseSnapshot: true
action: {name: clearAndSetSelection}
spokenFormError: >-
simple scope type type with id switchStatementSubject; this is a secret spoken
form currently only for internal experimentation
initialState:
documentContents: |
class Aaa {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ command:
scopeType: {type: switchStatementSubject}
usePrePhraseSnapshot: true
action: {name: clearAndSetSelection}
spokenFormError: >-
simple scope type type with id switchStatementSubject; this is a secret spoken
form currently only for internal experimentation
initialState:
documentContents: |
class Aaa {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ command:
targets:
- type: primitive
modifier: {type: containingScope, scopeType: string}
spokenFormError: >-
simple scope type type with id string; this is a secret spoken form currently
only for internal experimentation
initialState:
documentContents: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ command:
targets:
- type: primitive
modifier: {type: containingScope, scopeType: string}
spokenFormError: >-
simple scope type type with id string; this is a secret spoken form currently
only for internal experimentation
initialState:
documentContents: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ command:
scopeType: {type: switchStatementSubject}
usePrePhraseSnapshot: true
action: {name: clearAndSetSelection}
spokenFormError: >-
simple scope type type with id switchStatementSubject; this is a secret spoken
form currently only for internal experimentation
initialState:
documentContents: |
match 0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ command:
targets:
- type: primitive
modifier: {type: containingScope, scopeType: string}
spokenFormError: >-
simple scope type type with id string; this is a secret spoken form currently
only for internal experimentation
initialState:
documentContents: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ command:
targets:
- type: primitive
modifier: {type: containingScope, scopeType: string}
spokenFormError: >-
simple scope type type with id string; this is a secret spoken form currently
only for internal experimentation
initialState:
documentContents: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ command:
targets:
- type: primitive
modifier: {type: containingScope, scopeType: string}
spokenFormError: >-
simple scope type type with id string; this is a secret spoken form currently
only for internal experimentation
initialState:
documentContents: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ command:
targets:
- type: primitive
modifier: {type: containingScope, scopeType: string}
spokenFormError: >-
simple scope type type with id string; this is a secret spoken form currently
only for internal experimentation
initialState:
documentContents: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ command:
scopeType: {type: switchStatementSubject}
usePrePhraseSnapshot: true
action: {name: clearAndSetSelection}
spokenFormError: >-
simple scope type type with id switchStatementSubject; this is a secret spoken
form currently only for internal experimentation
initialState:
documentContents: |
match user {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ command:
targets:
- type: primitive
modifier: {type: containingScope, scopeType: string, includeSiblings: false}
spokenFormError: >-
simple scope type type with id string; this is a secret spoken form currently
only for internal experimentation
initialState:
documentContents: |
class ExampleClass() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ command:
targets:
- type: primitive
modifier: {type: containingScope, scopeType: string, includeSiblings: false}
spokenFormError: >-
simple scope type type with id string; this is a secret spoken form currently
only for internal experimentation
initialState:
documentContents: |
val string = """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ command:
- type: primitive
modifier: {type: containingScope, scopeType: string, includeSiblings: false}
mark: {type: decoratedSymbol, symbolColor: default, character: o}
spokenFormError: >-
simple scope type type with id string; this is a secret spoken form currently
only for internal experimentation
initialState:
documentContents: |
class ExampleClass() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ command:
scopeType: {type: switchStatementSubject}
usePrePhraseSnapshot: true
action: {name: clearAndSetSelection}
spokenFormError: >-
simple scope type type with id switchStatementSubject; this is a secret spoken
form currently only for internal experimentation
initialState:
documentContents: |
def matchTest(x: Int): String = x match {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ command:
- type: containingScope
scopeType: {type: switchStatementSubject}
usePrePhraseSnapshot: true
spokenFormError: >-
simple scope type type with id switchStatementSubject; this is a secret spoken
form currently only for internal experimentation
initialState:
documentContents: |-
switch(aaa) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ command:
- type: containingScope
scopeType: {type: switchStatementSubject}
usePrePhraseSnapshot: true
spokenFormError: >-
simple scope type type with id switchStatementSubject; this is a secret spoken
form currently only for internal experimentation
initialState:
documentContents: |-
switch(aaa + 1) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ command:
targets:
- type: primitive
modifier: {type: containingScope, scopeType: string}
spokenFormError: >-
simple scope type type with id string; this is a secret spoken form currently
only for internal experimentation
initialState:
documentContents: |
Expand Down

0 comments on commit 0358863

Please sign in to comment.