diff --git a/.gitignore b/.gitignore index 9e216d8..9d30cc9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,129 @@ -cmd/stock/config.conf +## Core latex/pdflatex auxiliary files: +*.aux +*.lof +*.log +*.lot +*.fls +*.out +*.toc + +## Intermediate documents: +*.dvi +*-converted-to.* +# these rules might exclude image files for figures etc. +*.ps +*.eps +*.pdf + +## Bibliography auxiliary files (bibtex/biblatex/biber): +*.bbl +*.bcf +*.blg +*-blx.aux +*-blx.bib +*.brf +*.run.xml + +## Build tool auxiliary files: +*.fdb_latexmk +*.synctex +*.synctex.gz +*.synctex.gz(busy) +*.pdfsync + +## Auxiliary and intermediate files from other packages: + +# algorithms +*.alg +*.loa + +# achemso +acs-*.bib + +# amsthm +*.thm + +# beamer +*.nav +*.snm +*.vrb + +#(e)ledmac/(e)ledpar +*.end +*.[1-9] +*.[1-9][0-9] +*.[1-9][0-9][0-9] +*.[1-9]R +*.[1-9][0-9]R +*.[1-9][0-9][0-9]R +*.eledsec[1-9] +*.eledsec[1-9]R +*.eledsec[1-9][0-9] +*.eledsec[1-9][0-9]R +*.eledsec[1-9][0-9][0-9] +*.eledsec[1-9][0-9][0-9]R + +# glossaries +*.acn +*.acr +*.glg +*.glo +*.gls + +# hyperref +*.brf + +# knitr +*-concordance.tex +*.tikz +*-tikzDictionary + +# listings +*.lol + +# makeidx +*.idx +*.ilg +*.ind +*.ist + +# minitoc +*.maf +*.mtc +*.mtc0 + +# minted +_minted* +*.pyg + +# morewrites +*.mw + +# nomencl +*.nlo + +# sagetex +*.sagetex.sage +*.sagetex.py +*.sagetex.scmd + +# sympy +*.sout +*.sympy +sympy-plots-for-*.tex/ + +# todonotes +*.tdo + +# xindy +*.xdy + + +__pycache__ + +# IDE's go .idea/ + + +# go project +cmd/stock/config.conf diff --git a/models/product.go b/models/product.go index f7ee002..4a7d17c 100644 --- a/models/product.go +++ b/models/product.go @@ -1,5 +1,6 @@ package models +// TODO DRAFT for a rest request to a other microservice func ProductExists(id int64) (bool, error) { return true, nil } diff --git a/models/product_test.go b/models/product_test.go new file mode 100644 index 0000000..b10d3d0 --- /dev/null +++ b/models/product_test.go @@ -0,0 +1,15 @@ +package models + +import ( + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestProductExists(t *testing.T) { + assert := assert.New(t) + ok, err := ProductExists(3) + + assert.True(ok) + assert.NoError(err) +}