Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Readdir Implementation - and covering with tests #51

Merged
merged 1 commit into from
Oct 15, 2018

Conversation

mekegi
Copy link
Contributor

@mekegi mekegi commented Jul 25, 2018

  • Added Readdir
  • Moved all string manipulations to html/template
  • Cover embed.go with tests (about 80%)
  • Cover generated static.go with test (about 80%)
    1. htttest for checking FileServer
    2. checking both mode - useLocal=false and useLocal=true for the same testcases
    3. added benchmark
  • Added testdata dir with some static files (some html5 template)
  • Added example folder with http.FileServer and generated from testdata
  • Added golang.org/x/tools/imports for generated file (like goftm for generated file)
  • Added to travis go generate and go test after it, as smoke tests.

@maddyblue
Copy link
Owner

Thanks. I'll try to review this soon.

@maddyblue
Copy link
Owner

Can you 1) revert the import path changes, 2) squash all these into a single commit or else group them into specific commits?

@mekegi
Copy link
Contributor Author

mekegi commented Jul 27, 2018

@mjibson ok - I'll combine all commit's into one

- [X] Added Readdir
- [X] Moved all string manipulations to html/template
- [X] Cover embed.go with tests (about 80%)
- [X] Cover generated static.go with test (about 80%)
  1. htttest for checking FileServer
  2. checking both mode - useLocal=false and useLocal=true for the same
testcases
  3. added benchmark
- [X] Added testdata dir with some static files (some html5 template)
- [X] Added example folder with http.FileServer and generated from
testdata
- [x] Added golang.org/x/tools/imports for generated file (like goftm
for generated file)
- [X] Added to travis `go generate` and go test after it, as `smoke
tests`.
@duncanharris
Copy link

A couple of months since the last update. I would like this feature. Is it likely to be merged soon?

@maddyblue
Copy link
Owner

I didn't carefully review or test this PR, but it looks pretty good so I'm just going to merge it and hope it works.

@maddyblue maddyblue merged commit ae760b8 into maddyblue:master Oct 15, 2018
thaJeztah added a commit to thaJeztah/cli that referenced this pull request Jan 20, 2020
full diff: maddyblue/esc@v0.1.0...v0.2.0

includes:

- maddyblue/esc#51 Readdir Implementation - and covering with tests
- maddyblue/esc#53 update go versions and golint import location
- maddyblue/esc#58 Avoid unnecessary conversion and so pass with unconvert linter

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
thaJeztah added a commit to thaJeztah/cli that referenced this pull request Jan 20, 2020
full diff: maddyblue/esc@v0.1.0...v0.2.0

includes:

- maddyblue/esc#51 Readdir Implementation - and covering with tests
- maddyblue/esc#53 update go versions and golint import location
- maddyblue/esc#58 Avoid unnecessary conversion and so pass with unconvert linter

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
thaJeztah added a commit to thaJeztah/cli that referenced this pull request Jan 27, 2020
full diff: maddyblue/esc@v0.1.0...v0.2.0

includes:

- maddyblue/esc#51 Readdir Implementation - and covering with tests
- maddyblue/esc#53 update go versions and golint import location
- maddyblue/esc#58 Avoid unnecessary conversion and so pass with unconvert linter

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
docker-jenkins pushed a commit to docker-archive/docker-ce that referenced this pull request Jan 28, 2020
full diff: maddyblue/esc@v0.1.0...v0.2.0

includes:

- maddyblue/esc#51 Readdir Implementation - and covering with tests
- maddyblue/esc#53 update go versions and golint import location
- maddyblue/esc#58 Avoid unnecessary conversion and so pass with unconvert linter

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 97010520d45437f211f88f8d988d6708cbebfc58
Component: cli
eiffel-fl pushed a commit to eiffel-fl/cli that referenced this pull request Jul 28, 2020
full diff: maddyblue/esc@v0.1.0...v0.2.0

includes:

- maddyblue/esc#51 Readdir Implementation - and covering with tests
- maddyblue/esc#53 update go versions and golint import location
- maddyblue/esc#58 Avoid unnecessary conversion and so pass with unconvert linter

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants