课程: Google Cloud Professional Machine Learning Engineer Cert Prep
免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Demo: Unit testing Rust - Google Cloud Platform教程
课程: Google Cloud Professional Machine Learning Engineer Cert Prep
Demo: Unit testing Rust
- [Instructor] Here we have a GitHub Codespace where I'm going to build out a unit test for a Rust project to start out with. First, I need to create a new Rust project, so I'll type in cargo new, and we'll call this T Rust as in test Rust. Now, I'll go ahead and cd into this directory. Now, the first thing to keep in mind here in this particular directory is that I only have a main file to start with, so I'm going to need to create a structure for my tests and also for my library code. so first up what I'll do is I will make a directory called tests and this is where I'm going to put in my tests and I'm going to go ahead and create an empty test file there. so we'll say touch test, and we'll call this testlib.rs. Also, I'll need to create my library file. so I'll go ahead and say, touchsrclib.rs. Perfect, and if I go through here and I refresh this you'll see the new structure. and in fact, I can also type in tree and…
内容
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
(已锁定)
Operationalize microservices1 分钟 57 秒
-
(已锁定)
Monitoring and logging with Rust on Google App Engine3 分钟 35 秒
-
(已锁定)
Continuous integration using Rust with GitHub Actions7 分钟 52 秒
-
(已锁定)
Demo: Unit testing Rust6 分钟 36 秒
-
(已锁定)
Demo: GitHub copilot-enabled Rust9 分钟 15 秒
-
(已锁定)
Set up a GCP workstation with Python4 分钟 41 秒
-
(已锁定)
Demo: Google Cloud Shell4 分钟 23 秒
-
(已锁定)
Demo: Google Cloud Editor4 分钟 41 秒
-
Demo: Google CLI SDK6 分钟 18 秒
-
(已锁定)
Demo: Google gcloud CLI6 分钟 14 秒
-
(已锁定)
Demo: Google App Engine Rust deployment5 分钟 15 秒
-
(已锁定)
Demo: Google App Engine Golang5 分钟 8 秒
-
(已锁定)
-
-
-
-
-
-
-
-