Giter Site home page Giter Site logo

golang-united-school-homework-7's Introduction

golang-united-school-homework-7

The goal of this homework is to write tests in students_test.go file and achieve as much coverage as possible.

Inside this repo you can find 2 files and one directory:

  1. File toBeTested.go contains functions which should be tested. Do not change this file.
  2. File students_test.go is a boilerplate of file with your tests. At the start of this file you can find init() function, which is required because of peculiarities of Autocode platform. This function will copy your file to /autocode folder, do not touch this function.
  3. Folder /autocode to which your test will be automatically copied when you locally trigger your tests.

Workflow to pass a homework:

  1. Write tests in students_test.go
  2. Run your tests locally to check it status and resulted coverage. Each time you run tests your code will be copied to /autocode folder. The name of copied file (without an extension) is students_test - it's correct. Please, do not modify this file manually, do it every time by triggering go test.
  3. Repeat steps 1 and 2 before you get desired result.
  4. When you will be ready to submit and test you solution on Autocode, you will need to commit and push autocode/students_test file to git. Make sure that this file was automatically updated.

After submitting of your solution on Autocode you will get some logs. Keep in mind that you will only get the result of your tests if they fail. Otherwise, you will only get the coverage value. If you faced with some error or did not achieve desired coverage - modify your code and try again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.