Skip to content

Bugfix: parse more query cases such as array input#4

Merged
astrialyanda merged 7 commits into
masterfrom
bugfix/parse-query
Dec 18, 2025
Merged

Bugfix: parse more query cases such as array input#4
astrialyanda merged 7 commits into
masterfrom
bugfix/parse-query

Conversation

@astrialyanda

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread parse_selection_test.go Outdated

assert.Error(t, err)
})
// ignored since existing real cases such as directives is valid with the assumed incorrect separator

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

masih dikomen

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better kuhapus aja kah mas?

@atjhoendz atjhoendz Dec 10, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ini aslinya return error kan? jadi ga return error? diubah assertnya aja tp dikasih komen penjelasan kenapa

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hoo okee mas

Comment thread gqlyzer_test.go Outdated

s, _ := l.Parse()

// assert.NoError(t, err)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jd error ga ini ya?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

errornya ttp masuk mas tp namanya ttp dapet

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assert error aja kalo gitu tp dikasih komen juga

Comment thread gqlyzer_test.go Outdated
})

t.Run("json with text", func(t *testing.T) {
l := Lexer{input: "mutation {\n\tAnalyzeTypo(texts: [\n \"GuluGuluGleg Gleg Gleg Khhrkkkrrrhrhhhrkkk\",\n \"Lorem ipsum dolor sit amet, elit\",\n \"roin maximus lectus ut turpis semper, vel blandit est accumsan.\",\n \"Quisque faucibus, dui eu suscipit condimentum, sapien ante tincidunt ipsum, vitae aliquam elit odio quis arcu.\",\n \"Donec aliquet tristique elit ut euismod\",\n \"Proin ut urna eget mi euismod auctor.\",\n \"The framework of thinking or rationale and research gaps that will be examined and contributed the results of research on solving problems related to coastal area management, especially development of technology for restoration and rehabilitation of mangrove ecosystems (personal documentation).\",\n\t]) {\n\t\ttypos{\n\t\t\toffset\n\t\t\ttype\n\t\t\ttoken\n\t\t\tsuggestions {\n\t\t\t\ttoken\n\t\t\t\tscore\n\t\t\t}\n\t\t}\n\t\t\n\t}\n}"}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kayak lagi keselek 😂 GuluGuluGleg Gleg Gleg Khhrkkkrrrhrhhhrkkk

@astrialyanda astrialyanda merged commit f0154a7 into master Dec 18, 2025
1 check passed
@astrialyanda astrialyanda changed the title Bugfix: parse more query cases such as text input Bugfix: parse more query cases such as array input Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants