nao1215 / spectest

A simple and extensible behavioural testing library for Go. You can use api test to simplify REST API, HTTP handler and e2e tests.
MIT License
37 stars 1 forks source link

Modifying Data Structures #145

Open nao1215 opened 1 year ago

nao1215 commented 1 year ago

Spectest has many fields within a single struct. I believe these fields can be encapsulated into smaller structs. By creating new structs and associating methods with them, the code readability and organization can be significantly improved.