Add first tests for valdi_rxjs
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 78/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- testing
调研方向
Start in src/valdi_modules/src/valdi/valdi_rxjs and look at its BUILD.bazel, then copy the test layout from valdi_test/BUILD.bazel, adding a test/ folder with test/**/*.ts in srcs and the jasmine dependency in test_deps. Read the Observable, Subject, BehaviorSubject and ReplaySubject sources, plus the helpers in src/testing/ for marble tests. Done when bazel test //src/valdi_modules/src/valdi/valdi_rxjs:test runs specs for the core types and passes.
由索引模型根据 Issue 内容生成。
描述
src/valdi_modules/src/valdi/valdi_rxjs has no tests. It's Valdi's port of RxJS (Observable, Subject, BehaviorSubject, ReplaySubject, the operators, firstValueFrom/lastValueFrom and so on), and other modules depend on it.
What to do
- Add a
test/folder to the module, and addtest/**/*.tstosrcsin itsBUILD.bazel. Add//src/valdi_modules/src/valdi/jasminetotest_deps.valdi_test/BUILD.bazelis a working example. - Write a first set of specs for the core types: subscribe and unsubscribe,
SubjectandBehaviorSubjectemission,ReplaySubjectbuffering, error and complete propagation, and a few common operators (map,filter,switchMap). The helpers insrc/testing/can be used for marble-style tests.
A first PR doesn't need to cover everything. A small, solid set of specs is a good start.
How to run
bazel test //src/valdi_modules/src/valdi/valdi_rxjs:test
See Testing for how module tests work.
Done when: the module has a test target with specs for the core types, and it passes.
See CONTRIBUTING.md before opening a pull request.
- 主要语言
- C++
- 星标
- 16.4k
- 派生
- 538
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Snapchat/Valdi 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 55/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
维护者通常 1 天内回复
-
难度 3/5 半天 新手友好度 66/100
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
itinance/react-native-fs#1270 ·
-
clang:frontend clang:openmp crash
难度 2/5 1-3 小时 新手友好度 62/100
llvm/llvm-project#245442 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
ai_p1 comp-sql-syntax
难度 2/5 1-3 小时 新手友好度 74/100
ClickHouse/ClickHouse#133888 ·
维护者通常 1 天内回复
-
难度 2/5 1-2 天 新手友好度 65/100