git-lfs/commands
Taylor Blau c282983235 api/schema: initial take on MethodTestCase
The initial thought here is to introduce a MethodTestCase type that
encapsulates the behavior of testing a single method in a particular given
service.

To do so, a httptest.Server is created and the schema is turned into a request
which is fired at that server. Thet MethodTestCase, of course, knows how to
respond to different requests, and the behavior of those responses is tested.

What I dislike is that we have to write three things which are mostly the same
to test any endpoint in any case on the API:
  1) a request type (Go struct)
  2) an expected response type (Go type)
  3) the actual response (a mutltline Go string, which is really just JSON)

This seems redundant, so I may explore other options for implementing this sort
of thing in the future.
2016-05-24 09:27:15 -06:00
..
command_checkout.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_clean.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_clone.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_env.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_ext.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_fetch.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_fsck.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_init.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_install.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_lock.go api/schema: initial take on MethodTestCase 2016-05-24 09:27:15 -06:00
command_logs.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_ls_files.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_pointer.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_pre_push.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_prune.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_pull.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_push.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_smudge.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_status.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_track.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_uninit.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_uninstall.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_untrack.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_update.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
command_version.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
commands.go vendor: vendor dependencies in vendor/ using Glide 2016-05-23 12:10:35 -06:00
uploader.go Refactor errors and credentials into own packages to break cycles 2016-05-16 15:06:02 +01:00